Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I set my macro up to run on multiple spreadsheets. Unfortunately, the macro
functions are performed for the number of lines in the original spreadsheet. The macro was recorded using 'ctrl + end' rather than a specific row and column. Is there a way to have the macro only apply through 'ctrl + end' ? Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
There are several ways of find the last row, last column but you didn't tell us what you are trying to find. Here's 2 ways Last used column in row 1 lastcol = Cells(1, Columns.Count).End(xlToLeft).Column last used row in a column lastrow = Cells(Cells.Rows.Count, "A").End(xlUp).Row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "tlwhite" wrote: I set my macro up to run on multiple spreadsheets. Unfortunately, the macro functions are performed for the number of lines in the original spreadsheet. The macro was recorded using 'ctrl + end' rather than a specific row and column. Is there a way to have the macro only apply through 'ctrl + end' ? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro for a range | Excel Discussion (Misc queries) | |||
Macro deletes row in range, macro then skips the row moved up | Excel Discussion (Misc queries) | |||
macro pop-up to set range? | Excel Worksheet Functions | |||
Name a Range - Macro | Excel Worksheet Functions | |||
Use Range Name in Macro | Excel Worksheet Functions |