Hello
I am trying to run two Macros one after the other, I have used the following
but it doesn`t work as Macro2 is sheet based not module based ..![]()
Sub Main() Macro1 Macro2 End Sub
any way around this ?
Thanks
Hello
I am trying to run two Macros one after the other, I have used the following
but it doesn`t work as Macro2 is sheet based not module based ..![]()
Sub Main() Macro1 Macro2 End Sub
any way around this ?
Thanks
Include the sheet codename![]()
Sub Main() Macro1 Sheet1.Macro2 End Sub
Last edited by Andy Pope; 09-03-2013 at 05:13 AM.
I have tried it but I am getting an error ..Any ideas where I went wrong ?![]()
Sub RefreshInsert() Refresh Sheets("All Orders").InsertWhseRegion End Sub
That is the sheets name where as you need to use it's code name. You can check the VBA project for sheets code name, the one NOT in brackets.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks