Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Unprotecting (with password) the activeworkbook

activeworkbook.unprotect password:="password"

You dropped an equal sign.



RBeau wrote:

Apologies if this gets posted twice ... could not find it listed in MSDN:

I have an application where I want to be able to run a marco that updates
data. The active workbook and sheets are protected. Looking to:
a. Unprotect the ActiveWorkbook (with password)
b. Unprotect the sheet (with password)
c. make the updates
d. protect the sheet and the activeworkbook again

I have no problem in protecting and unprotecting the sheet, but I can't get
the activeworkbook unprotected programmatically.

I used ActiveWorkbook.Unprotect Password: "password", but I keet getting a
syntax error.

According to VB help, that is the correct syntax.

Can anyone suggest a solution? Much apprectiated!


--

Dave Peterson
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 sheet did not prompt for password mhng Excel Programming 11 July 24th 06 02:51 AM
Macro asking for a password twice when unprotecting sheet Tim Whitley[_3_] Excel Programming 2 February 20th 06 04:51 PM
Password Protecting/Unprotecting Via Code MWS Excel Programming 3 December 12th 05 03:21 PM
Unprotecting password protected workbook Vnagpal Excel Discussion (Misc queries) 1 December 10th 05 06:33 AM
Simple password function - unprotecting sheets Peter Hill Excel Programming 4 September 24th 03 03:38 AM


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