Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() lr=cells(rows.count,"a").end(xlup).row range(cells(1,"a"),cells(lr,"a")).copy range("b3") You rarely need to select but if you insist lr=cells(rows.count,"a").end(xlup).row range(cells(1,"a"),cells(lr,"a")).select -- Don Guillett SalesAid Software "robertlewis" wrote in message ... I want to be able to select the last row which contains data and use the row number in a macro to select all the cells in a column from the top to the last row. The number of rows varies each time the macro is run. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Open Excel Files with Macros | Excel Discussion (Misc queries) | |||
Macros Don't Show On Commands List and 'Normal.dot' | Excel Worksheet Functions | |||
Hide Macro's in Toolbar / Macro's list | Excel Discussion (Misc queries) | |||
how do I run excel 4.0 macros on excel 2000 | Excel Discussion (Misc queries) | |||
Excel crashes while opening excel file imbeddied with macros | Excel Discussion (Misc queries) |