The three ActiveWindow.SelectedSheets.Visible = False are what came out of the macro, it never occured to me to make it more efficant. Thanks for the tip!
As for the locking of the cells, I tried your code, and at least it is giving me a different error instead of the one I've been getting. It's not much progress, but it's something....
It now says:
"Run-time error '1004':
Unable to set the locked property of the Range class
The code is now:
I refuse to believe that this won't work somehow. Thanks for sticking with me.
Amber
[QUOTE=Ron de Bruin]Hi Amber
I don't understand this part in your code (3 times)
>> > ActiveWindow.SelectedSheets.Visible = False
>> > ActiveWindow.SelectedSheets.Visible = False
>> > ActiveWindow.SelectedSheets.Visible = False
Do you weant to hide all sheets except one ???
What do you select before you run this
Take a fast look and test this part without a problem
'Step 1 - Save, and hide all non-essential sheets
ActiveWorkbook.Save
'ActiveWindow.SelectedSheets.Visible = False
'
'Step 2 - Locks all cells, hides user notes, and re-hides the column and row headings
ActiveWindow.DisplayHeadings = True
ActiveSheet.Unprotect Password:="STLMOB@900"
With Cells
.Locked = True
.FormulaHidden = False
End With
Columns("AD:AI").Hidden = True
ActiveWindow.DisplayHeadings = False
--
Regards Ron de Bruin
http://www.rondebruin.nl
Bookmarks