Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default control form macros and protected sheets

I have a large worksheet that requires data entry by other users. There are
both locked and unlocked cells within the worksheet. The database contains
several control form macros that cannot run if the sheet is protected.
Portions of the worksheet require sheet protection to prevent changes. Is
there a way to protect the worksheet and still run the macros?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default control form macros and protected sheets

Place new code in the macros to unprotect the sheet, run the existing
code then protect the sheet.

Sub ControlFormMacro
Worksheets("LargeWorksheet").Unprotect "password"
'code to do stuff
Worksheets("LargeWorksheet").Protect "password"
End Sub
----------
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Greyson"
wrote in message
I have a large worksheet that requires data entry by other users. There are
both locked and unlocked cells within the worksheet. The database contains
several control form macros that cannot run if the sheet is protected.
Portions of the worksheet require sheet protection to prevent changes. Is
there a way to protect the worksheet and still run the macros?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run macros on protected worksheet Lisa D'K Excel Worksheet Functions 0 February 4th 06 08:06 PM
Run macros on protected worksheet paul Excel Worksheet Functions 0 February 4th 06 11:53 AM
Macros for Protect/Unprotect all sheets in a workbook Paul Sheppard Excel Discussion (Misc queries) 2 August 4th 05 04:30 PM
allow macros in protected worksheet Marge Excel Worksheet Functions 1 May 25th 05 04:23 PM
Running Macros in protected workbook petunia Excel Worksheet Functions 3 January 18th 05 09:24 PM


All times are GMT +1. The time now is 12:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"