Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Oh no! Need help on unprotect password protection

I was fooling around with some code to protect all of my worksheets,
except unlocked cells.

Somehow, in error, I programmed a password into each sheet to
unprotect.

I have never put a password in any of the sheets.

the code that I think caused this was
_____

Sheet1.protect enable selection = xlUnlockedCell

_____

Did this code somehow set my password to something? How do I undo?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Oh no! Need help on unprotect password protection

Jason,

That line would cause a syntax error.
I'm guessing you've actually got two lines.
Sheet1.protect enable
selection = xlUnlockedCell

The password could be set to whatever the variable 'enable' was set to.

If earlier in your code you have written something like:
enable = "True"
or
enable = "Yes"

Then perhaps that's what your password is?

You might like to look up online help for the Protect method.


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"jasonsweeney " wrote in
message ...
I was fooling around with some code to protect all of my worksheets,
except unlocked cells.

Somehow, in error, I programmed a password into each sheet to
unprotect.

I have never put a password in any of the sheets.

the code that I think caused this was
_____

Sheet1.protect enable selection = xlUnlockedCell

_____

Did this code somehow set my password to something? How do I undo?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Oh no! Need help on unprotect password protection

Ok. I found a password finding tool on these threads (thank god).

New question:

Can someone show me some code that protects each sheet (not using a
loop) and makes it so that only unlocked cells can be selected??


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Oh no! Need help on unprotect password protection

jason,

The following will allow editing in only unlocked cells:

ActiveSheet.EnableSelection = xlUnlockedCells
ActiveSheet.Protect UserInterfaceOnly:=True
ActiveCell.Select

If you want to do it on multiple sheets, you'll have to activate
each of them and do it or use a loop.

John

"jasonsweeney " wrote in
message ...
Ok. I found a password finding tool on these threads (thank god).

New question:

Can someone show me some code that protects each sheet (not using a
loop) and makes it so that only unlocked cells can be selected??


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Oh no! Need help on unprotect password protection

Is that actually the code you used or did you have

Sheet1.protect enableselection = xlUnlockedCell

If the latter, it is possible that this would be interpreted as

Sheet1.protect password:=True

since enableselection and xlUnlockedCell would both be seen as uninitialized
variables and:

? enableselection = xlUnlockedCell
True


In any event you can try

Sheet1.Unproted enableselection = xlUnlockedCell

--
Regards,
Tom Ogilvy


"jasonsweeney " wrote in
message ...
I was fooling around with some code to protect all of my worksheets,
except unlocked cells.

Somehow, in error, I programmed a password into each sheet to
unprotect.

I have never put a password in any of the sheets.

the code that I think caused this was
_____

Sheet1.protect enable selection = xlUnlockedCell

_____

Did this code somehow set my password to something? How do I undo?


---
Message posted from http://www.ExcelForum.com/





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Oh no! Need help on unprotect password protection

Tom,

I still don't know what I did with that. Excel clearly thought
programmed a password. I found a quick a dirty "brute force attack
password macro on these threads and used that. It said the passwor
for those sheets was "AAAAAAAABABF". Weird. Thnaks for the rest o
the code, sheets are working good now

--
Message posted from http://www.ExcelForum.com

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Oh no! Need help on unprotect password protection

jason,

Depending on what you used to remove the passwords, if it told you
what it was, it's almost definitely not the original password.
For more on this read he

http://www.mcgimpsey.com/excel/removepwords.html

John

"jasonsweeney " wrote in
message ...
Tom,

I still don't know what I did with that. Excel clearly thought I
programmed a password. I found a quick a dirty "brute force attack"
password macro on these threads and used that. It said the password
for those sheets was "AAAAAAAABABF". Weird. Thnaks for the rest of
the code, sheets are working good now.


---
Message posted from http://www.ExcelForum.com/



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
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Unprotect password- forgot? JW Excel Worksheet Functions 4 February 29th 08 04:56 AM
how can i unprotect worksheet with no password? raf Excel Discussion (Misc queries) 2 May 21st 07 09:25 PM
unprotect more than one password in macro Morticcia Excel Programming 1 October 1st 03 04:55 PM
Password Unprotect Bob Tulk Excel Programming 0 July 29th 03 02:53 PM


All times are GMT +1. The time now is 12:57 PM.

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"