Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default run macros on protected sheet

Is it possible to protect a sheet (Excel 2003) and still allow macros buttons
to funcion without adding unprotect and protect at the beginning and end
(which of course would prompt for the password).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default run macros on protected sheet

You pass the password to unprotect etc.

Activesheet.Unprotect Password:="mypassword"

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"widman" wrote in message
...
Is it possible to protect a sheet (Excel 2003) and still allow macros
buttons
to funcion without adding unprotect and protect at the beginning and end
(which of course would prompt for the password).



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default run macros on protected sheet


I don't want to put the password there.
"Bob Phillips" wrote:

You pass the password to unprotect etc.

Activesheet.Unprotect Password:="mypassword"

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"widman" wrote in message
...
Is it possible to protect a sheet (Excel 2003) and still allow macros
buttons
to funcion without adding unprotect and protect at the beginning and end
(which of course would prompt for the password).




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default run macros on protected sheet

Why not?

You can always protect your VBA Project from prying eyes if that's what concerns
you.

Select your workbook/project in the VBE and right-clickVBA Project
PropertiesProtection.

Note: after setting a password to view you must save the workbook.


Gord Dibben MS Excel MVP

On Sat, 9 Dec 2006 16:31:01 -0800, widman
wrote:


I don't want to put the password there.
"Bob Phillips" wrote:

You pass the password to unprotect etc.

Activesheet.Unprotect Password:="mypassword"

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"widman" wrote in message
...
Is it possible to protect a sheet (Excel 2003) and still allow macros
buttons
to funcion without adding unprotect and protect at the beginning and end
(which of course would prompt for the password).





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default run macros on protected sheet

Well you have a choice, you put your password there, you lete the password
prompt pop-up, or you have no password. Your choice.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"widman" wrote in message
...

I don't want to put the password there.
"Bob Phillips" wrote:

You pass the password to unprotect etc.

Activesheet.Unprotect Password:="mypassword"

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"widman" wrote in message
...
Is it possible to protect a sheet (Excel 2003) and still allow macros
buttons
to funcion without adding unprotect and protect at the beginning and
end
(which of course would prompt for the password).






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 - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
protecting macros for a protected sheet Jon Excel Discussion (Misc queries) 3 March 29th 06 03:32 PM
Mouse pointer becomes hyperlink when sheet protected GillianHG Excel Discussion (Misc queries) 0 September 28th 05 03:30 PM


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