Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ST
 
Posts: n/a
Default Protecting Macro and selected sheets

I have written a macro to generate reports in few sheets of a
workbook.Is there a way to prevent users from seeing the macro and at
the same time allowing them to view/edit the rest of the workbook.

Also is it possible to protect selected sheets in a workbook?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Protecting Macro and selected sheets

You can protect your code by doing this within the VBE:

Tools|VBAProject Properties|Protection tab
Lock the project for viewing and give it a memorable password.

You can use tools|protection|protect sheet
but you have to do it one sheet at a time.

(or write a macro that would loop though the selected sheets)

ST wrote:

I have written a macro to generate reports in few sheets of a
workbook.Is there a way to prevent users from seeing the macro and at
the same time allowing them to view/edit the rest of the workbook.

Also is it possible to protect selected sheets in a workbook?


--

Dave Peterson
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
Macros-creating new sheets Bonbon Excel Worksheet Functions 3 February 17th 06 09:44 AM
Running a Macro when a single cell is selected Jerry Wustrack Excel Discussion (Misc queries) 3 January 31st 06 08:27 PM
Running a macro in a selected cell... Steve Excel Discussion (Misc queries) 2 January 19th 06 10:58 PM
Opening multiple Excel files that contain varied selected sheets MLBrownewell Excel Worksheet Functions 0 September 14th 05 05:48 PM
Perform oiperations relative to initial selected cell scratching my head Excel Discussion (Misc queries) 1 May 30th 05 05:42 PM


All times are GMT +1. The time now is 08: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"