Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub nextnum()
With Cells(Rows.Count, 1).End(xlUp) .Offset(1) = "CE" & Format(Mid(.Value, 3) + 1, "000000") End With End Sub "Bobbo" wrote in message ... I am looking to create a macro that will allow me to open a spreadsheet and search column A for the last entry. The entries in the column are like CE000001, CE000002, CE000003 and on. I need to be able to find the last number that was used. After getting the number I will need to insert a new number in sequence to the next row. Could you point me to some examples that might help. Thanks Bob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding missing numbers in a sorted sequence | Excel Discussion (Misc queries) | |||
Finding the longest sequence of 0's in a row | Excel Worksheet Functions | |||
How can I match a random number with closest number from sequence? | Excel Worksheet Functions | |||
Excel formula for finding next number in a given sequence? | Excel Programming | |||
Finding numbers missing from a sequence | Excel Discussion (Misc queries) |