VBA: calculate hidden worksheet

Puppies72

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

I am trying to get a hidden worksheet to calculate but can't seem to get it to run, the code I am using is

Sheets("Terrain").Calculate

can someone show me the correct method to do this, I've looked on these forums and google but cna't seem to find an example that exactly does this

as always help appreciated!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Your syntax seems to be correct. I've just tried it and it seems to work on a hidden worksheet. And, even if the worksheet is protected, it still seems to work. So check to make sure that name of the worksheet is spelled correctly.
 
Upvote 0
Many thanks for confirming that - found the problem and as the simplest ones are it was spelling :o(

So thank you!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,278
Members
452,902
Latest member
Knuddeluff

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