Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unprotecting Worksheets in VB Script

I am using this code to unprotect worksheets in a small program I have:

Sheets("Intropage").Unprotect "ugc"

I have since learned, that this does not work in Excel '97. Can anyon
help me out with the command that unprotects password protected sheet
in '97? Is it possible?

Thank

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Unprotecting Worksheets in VB Script

It will work in Excel 97.

If you are doing it from a commandbutton, change the TakefocusOnClick
property to false.

--
Regards,
Tom Ogilvy

"InnerChild " wrote in message
...
I am using this code to unprotect worksheets in a small program I have:

Sheets("Intropage").Unprotect "ugc"

I have since learned, that this does not work in Excel '97. Can anyone
help me out with the command that unprotects password protected sheets
in '97? Is it possible?

Thanks


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Unprotecting Worksheets in VB Script



Try Sheets("Intropage").Unprotect Password:="ugc"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Unprotecting worksheets Lauren Excel Discussion (Misc queries) 2 January 28th 10 03:30 PM
Unprotecting Worksheets Storm Excel Discussion (Misc queries) 3 August 29th 07 11:06 PM
Unprotecting worksheets hip Excel Worksheet Functions 4 June 5th 06 07:37 AM
Unprotecting worksheets with a macro Katrina Excel Programming 2 July 10th 04 09:59 AM
Protecting & unprotecting worksheets pkley Excel Programming 1 January 7th 04 10:28 PM


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