Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Define a variable as a string to capture your macro workbook name
Dim MainWB as string MainWB=ActiveWorkbook.Name 'place this somewhere near the beginning of your macro ......after sub runs, near end of macro Windows(MainWB).Activate ....for more specifics, you could also add the following Sheets("insertSheetNameHere").Select Range("A1").Select ---Joran6 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
return the current row number for use in a formula | Excel Discussion (Misc queries) | |||
use the current time to return a value | Excel Discussion (Misc queries) | |||
use the current time to return a value | Excel Programming | |||
Function to return the current Worksheet name? | Excel Worksheet Functions | |||
Return number of current sheet | Excel Worksheet Functions |