Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
lee lee is offline
external usenet poster
 
Posts: 184
Default Help; When protecting the Workbook, tab Macros won't work

How can I ensure that my tab Macro work when I have protected the Workbook.

I need to protect the workbook, to prevent copying of worksheets and moving
of tabs. however when the workbook and sheets are protected the macros fail
to work, resulting in an error message.

How do I overcome this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Help; When protecting the Workbook, tab Macros won't work

In your macro, unprotect your workbook, do whatever you want to do, then
protect the workbook again eg:

ActiveWorkbook.Unprotect Password:="mypassword"
'code
ActiveWorkbook.Protect Password:="mypassword"

Hope this helps
Rowan

Lee wrote:
How can I ensure that my tab Macro work when I have protected the Workbook.

I need to protect the workbook, to prevent copying of worksheets and moving
of tabs. however when the workbook and sheets are protected the macros fail
to work, resulting in an error message.

How do I overcome this?

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
Protecting a worksheet / workbook with macros WLMPilot Excel Discussion (Misc queries) 2 May 30th 06 04:35 PM
can a workbook with macros created in excel 2003 work in excel 20. Steve Venti Excel Discussion (Misc queries) 2 December 27th 04 02:31 PM
Protecting Macros Anthony[_9_] Excel Programming 1 July 31st 04 10:58 AM
Vital: Protecting sheets so macros/buttons still work? StargateFanFromWork Excel Programming 13 July 5th 04 09:23 PM


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