VBA: calling a macro from a different sheet

Puppies72

Board Regular
Joined
Mar 29, 2010
Messages
211
Hi all,

I have a macro linked to a button on sheet "Terrain", I have another macro on sheet "active max" - both work fine - seperately.

What I want to do is hide sheet "active max" and run it's macro at the end of the current macro I have on sheet "terrain".

I know I can do this using Application.Run...the problem I am having is that my macro on sheet "active max" does a lot of autofill; jumping around the sheet; calculations and copy pasting of values and when I call it from my "terrain" sheet macro it affects cells on the "terrain" sheet and not the "active max" sheet.

I have With Sheets ("...") and End With on my "active max" sheet macro but is there any other way to ensure that it only calculates on that sheet and not the sheet where the macro is being activated from?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Thanks for that but it doesn't make any difference.

The sheet "active max" doesn't need to be calculated - the macro on that page needs to be run and affect only that page - as it is if I call it from within a mcro on a different page using Application.Run it is affecting cells on the page I am calling it from.

I checked your link and there i snothing I can see there either as it is not really a calculation issue
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top