Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Insert or add one number at right side to ISBN

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodrigovim - 24 Jan 2007 14:06 GMT
Hi,

How can insert or add a number (always the same e. 1) at right side of
70.000 ISBN book numbers automatically?

Public Librarian Ask to you...
Ron de Bruin - 24 Jan 2007 15:10 GMT
Hi rodrigovim

You can use the change event for column A in this example
Copy the code in the sheet module and after you enter the ISBN book number in the cell it add the 1

Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.Column = 1 Then
       Application.EnableEvents = False
       Target.Value = Target.Value & 1
       Application.EnableEvents = True
   End If
End Sub

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> Hi,
>
> How can insert or add a number (always the same e. 1) at right side of
> 70.000 ISBN book numbers automatically?
>
> Public Librarian Ask to you...
rodrigovim - 24 Jan 2007 15:58 GMT
Many Thank Ron

but,

The 70.000 ISBNs was captured from bookshelves by Bar-code handy
terminal to Data harvesting software and exported to Excel,...and now
we need to add the number 1 to all numbers, as validation digit to our
inventory process.

> Hi rodrigovim
>
[quoted text clipped - 19 lines]
>
> > Public Librarian Ask to you...- Hide quoted text -- Show quoted text -
Ron de Bruin - 24 Jan 2007 16:04 GMT
Then use this for column A

Sub test()
   Dim cell As Range
   For Each cell In Columns("A").SpecialCells(xlCellTypeConstants)
       cell.Value = cell.Value & 1
   Next cell
End Sub

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> Many Thank Ron
>
[quoted text clipped - 28 lines]
>>
>> > Public Librarian Ask to you...- Hide quoted text -- Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.