Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why macro runs on the same sheet?
I have recorded a macro, when i run it on other sheet, it runs on the same
sheet where it was created. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Why macro runs on the same sheet?
Hi
When the macro recorder ran, it will have used reference like Sheets("Sheet1").Range("A1") referring to a specific sheet location, hence it would carry out the tasks on that sheet. If you change all specific references to Sheets("Sheet1") (or whatever sheet name it refers to) to ActiveSheet.Range("A1) etc then it will run on whichever sheet is active at the time you run the macro. -- Regards Roger Govier "Harshad" wrote in message ... I have recorded a macro, when i run it on other sheet, it runs on the same sheet where it was created. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I need a macro that runs other macros until P5=28 | Excel Discussion (Misc queries) | |||
One macro runs then it auto runs another macro | Excel Discussion (Misc queries) | |||
User to decide how often a macro runs | Excel Discussion (Misc queries) | |||
Macro that runs in the background | Excel Discussion (Misc queries) | |||
Which Macro Runs...? | Excel Discussion (Misc queries) |