Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Tue, 9 Mar 2010 13:26:01 -0800, Mike H
wrote: A macro it is then Sub Sonic() Dim LastRow As Long Set SrcSht = Sheets("Sheet2") Set DstSht = Sheets("Sheet1") LastRow = SrcSht.Cells(Cells.Rows.Count, "A").End(xlUp).Row DstSht.Range("A1").Value = SrcSht.Range("A" & LastRow) End Sub +1 should be added at the end of the last statement like this: DstSht.Range("A1").Value = SrcSht.Range("A" & LastRow) + 1 Lars-Åke |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
generate different number | Excel Worksheet Functions | |||
Serial number generate | Excel Worksheet Functions | |||
generate a random number and use if function to generate new data | Excel Worksheet Functions | |||
how can text be set up to generate a number? | New Users to Excel | |||
generate serial number | Excel Worksheet Functions |