LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
cnote
 
Posts: n/a
Default Help w/ protecting all sheets


I have read the threads here on how to protect multiple sheets in a
workbook and not having to protect them 1 by 1. I have copied and
pasted all the different macro's/visual basic script that has been
posted for that purpose, but I can't get it to work and I'm always
getting an error. The error from visual basic says "compile error:
invalid outside procedure" and then the visual basic screen shows the
following:

Range ("AM52")
If Ans = 0 Then
"+."

It does not like the "AM52" part because it is highlighted in the error
message.

Also, the error I get from recording my own macro step by step is "Run
time error 40036" from visual basic.

Can anyone help me to get this running and tell me what to do step by
step? I looked at this all day last friday and couldn't get it to do
right. Thanks.


--
cnote
------------------------------------------------------------------------
cnote's Profile: http://www.excelforum.com/member.php...o&userid=26184
View this thread: http://www.excelforum.com/showthread...hreadid=553206

 
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
Protecting single sheets mattgoof2005 Excel Discussion (Misc queries) 2 June 13th 06 01:42 AM
Protecting Macro and selected sheets ST Excel Discussion (Misc queries) 1 June 6th 06 03:03 PM
Protecting Sheets albertmb Excel Discussion (Misc queries) 7 March 13th 06 09:13 PM
Protecting Multiple Sheets pjd Excel Discussion (Misc queries) 1 April 4th 05 05:02 PM
Protecting multiple sheets mik00725 Excel Discussion (Misc queries) 1 February 17th 05 02:36 AM


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

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

About Us

"It's about Microsoft Excel"