tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have a document that we got someone to do some work on and when it came back some of the sheets have been renamed In the Project Widow (I hopes thats correct)
So Instead of
Sheet16(Dashboard)
we have
wsDashboard(Dashboard)
now this has coused me a problem with this code and I'm not sure whats wrong?
I have a document that we got someone to do some work on and when it came back some of the sheets have been renamed In the Project Widow (I hopes thats correct)
So Instead of
Sheet16(Dashboard)
we have
wsDashboard(Dashboard)
now this has coused me a problem with this code and I'm not sure whats wrong?
Code:
Sub Selt_Shts1()
Dim ws As Sheet
For Each ws In Array(wsData, wsProd, wsMarket, wsChars, wsDelivery, wsDevelopit)
ws.Select
ActiveWindow.DisplayHeadings = False
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Next ws
end sub
[LEFT][COLOR=#222222][FONT=Verdana]
[/FONT][/COLOR][/LEFT]
Now the "wsData" is the first part and we want to use this so if the sheet gets renamed it still runs
but everytime I run it I get debug Object required
Please Help
Thanks
Tony
but everytime I run it I get debug Object required
Please Help
Thanks
Tony