Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2002 Protection & Macros

Status
Not open for further replies.

GreyBox

Programmer
Sep 13, 2002
5
GB
When my Excel 2000 macros are run on Excel 2002, worksheet protection acts in ways I don't appreciate.

I want to be able to change formats in some cells from VBA code, but Excel seems to only provide flexibility in the protection such that specified users can change certain ranges. Also when I set 'User Interface Only=True' in the worksheet protection in my VB code, Excel 2002 still flags an error when my code changes a cell format on an unprottected cell.

How do I lose the protection error when my macros run without unprotecting the worksheets totally? TIA. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top