Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello, I have recorded a macro and I need to know what command to give it to
advance the active cell down the spreadsheet to the first empty cell. Also, how do I tell the macro to look at the active worksheet or file to run, not a specific one. I want to run this macro on a lot of files. Right now the macro has one specific file name and I need to be able to run the macro on any file. Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try:
Activecell.end(xldown).offset(1,0).select -- Regards, Fred "EducatingMom" wrote in message ... Hello, I have recorded a macro and I need to know what command to give it to advance the active cell down the spreadsheet to the first empty cell. Also, how do I tell the macro to look at the active worksheet or file to run, not a specific one. I want to run this macro on a lot of files. Right now the macro has one specific file name and I need to be able to run the macro on any file. Thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, Fred. Any clue on how to replace a specific file name with a generic
one, like Active Worksheet? Here is the line from my macro that I need changed, Windows("4 Way St.-Pretzel Park.xls").Activate I want this macro to run on any file that I have open and active. "Fred Smith" wrote: Try: Activecell.end(xldown).offset(1,0).select -- Regards, Fred "EducatingMom" wrote in message ... Hello, I have recorded a macro and I need to know what command to give it to advance the active cell down the spreadsheet to the first empty cell. Also, how do I tell the macro to look at the active worksheet or file to run, not a specific one. I want to run this macro on a lot of files. Right now the macro has one specific file name and I need to be able to run the macro on any file. Thanks. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It's as you would expect:
Activesheet or Activewindow -- Regards, Fred "EducatingMom" wrote in message ... Thanks, Fred. Any clue on how to replace a specific file name with a generic one, like Active Worksheet? Here is the line from my macro that I need changed, Windows("4 Way St.-Pretzel Park.xls").Activate I want this macro to run on any file that I have open and active. "Fred Smith" wrote: Try: Activecell.end(xldown).offset(1,0).select -- Regards, Fred "EducatingMom" wrote in message ... Hello, I have recorded a macro and I need to know what command to give it to advance the active cell down the spreadsheet to the first empty cell. Also, how do I tell the macro to look at the active worksheet or file to run, not a specific one. I want to run this macro on a lot of files. Right now the macro has one specific file name and I need to be able to run the macro on any file. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert date | Excel Worksheet Functions | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Row Expansion | Excel Worksheet Functions | |||
Adding a row to worksheet does not update cell references in another. | Excel Worksheet Functions | |||
Update Macro: Leave Colour As Before Once Cell is Not Active | Excel Discussion (Misc queries) |