Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Clear Macro & Password Protection

You might want to post your code so we can see what the clear macro is doing.

"Liz" wrote:

Hi There,

I'm probably midway between basic and moderate excel user.
I have a sheet that has a column that requires users to enter
either y or n, and some other free format info. I have a clear button
that will delete only the free format and y/n entries. I would like to
protect the rest of the other cells so nothing can be changed
(I've unlocked the cells I want people to edit), however, when I
password protect the sheet and then try to run the clear macro, it asks for a
password and unlocks the entire sheet. Any way around this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Clear Macro & Password Protection

Sub ClearThings()

ActiveSheet.Unprotect Password:="justme"

do your stuff with your code

ActiveSheet.Protect Password:="justme"

End Sub

On Mon, 31 Mar 2008 17:06:50 -0700, Mike wrote:

You might want to post your code so we can see what the clear macro is doing.

"Liz" wrote:

Hi There,

I'm probably midway between basic and moderate excel user.
I have a sheet that has a column that requires users to enter
either y or n, and some other free format info. I have a clear button
that will delete only the free format and y/n entries. I would like to
protect the rest of the other cells so nothing can be changed
(I've unlocked the cells I want people to edit), however, when I
password protect the sheet and then try to run the clear macro, it asks for a
password and unlocks the entire sheet. Any way around 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
Password protection [email protected] Excel Discussion (Misc queries) 5 February 19th 08 05:13 AM
password protection MelB Excel Discussion (Misc queries) 2 November 11th 07 02:55 AM
use a macro to automate excel worksheet password protection Bodyshopman Excel Discussion (Misc queries) 2 July 25th 07 01:21 AM
develop a macro which takes password protection on and off Gai Excel Discussion (Misc queries) 4 November 16th 06 06:14 AM
Password Protection DNA Excel Discussion (Misc queries) 0 May 3rd 06 01:59 PM


All times are GMT +1. The time now is 07:20 AM.

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"