Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help with macros to protect different sheets


Hi all!

I have multiples spreadsheets with different amount of sheets with
different names each sheet. What I want to do is to run a Macros to
protect all sheets, and hiding the formulas, that works for every
different workbook and sheet. Any help will be greatly appreciated.


--
mik00725
------------------------------------------------------------------------
mik00725's Profile: http://www.excelforum.com/member.php...o&userid=16169
View this thread: http://www.excelforum.com/showthread...hreadid=481996

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default help with macros to protect different sheets

for each sh in Activeworkbook.worksheets
sh.activate
sh.Cells.Locked = True
sh.Cells.FormulaHidden = True
sh.Protect Password:="ABCD"
Next

--
Regards,
Tom Ogilvy

"mik00725" wrote in
message ...

Hi all!

I have multiples spreadsheets with different amount of sheets with
different names each sheet. What I want to do is to run a Macros to
protect all sheets, and hiding the formulas, that works for every
different workbook and sheet. Any help will be greatly appreciated.


--
mik00725
------------------------------------------------------------------------
mik00725's Profile:

http://www.excelforum.com/member.php...o&userid=16169
View this thread: http://www.excelforum.com/showthread...hreadid=481996



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
Protect macros? JulieD Excel Discussion (Misc queries) 6 August 25th 05 08:38 PM
Macros for Protect/Unprotect all sheets in a workbook Paul Sheppard[_2_] Excel Programming 4 August 16th 05 03:36 PM
Macros for Protect/Unprotect all sheets in a workbook Paul Sheppard Excel Discussion (Misc queries) 2 August 4th 05 04:30 PM
Protect Macros nc Excel Discussion (Misc queries) 8 March 23rd 05 03:24 PM
Protect my macros davegb Excel Programming 4 March 10th 05 01:16 AM


All times are GMT +1. The time now is 10:27 AM.

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"