LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Testing for "Password to modify"

I have a program that I've written in VBA (from Word) that opens and
modifies all of the Excel documents in a directory. The program hangs
when it reaches documents that have "Password to modify" set. These
documents don't have a "Password to open" set, so the check
"HasPassword" check returns false. I can't find any other check like
this (for the "Password to modify"), and am looking for help.

I don't want to get around the password, just to leave my routine and
move onto the next document. To restate, if I come across a document
that has a "Password to modify" set, I want to close it and move onto
the next document.

Thanks in advance.

Robert Brown

 
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 - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint" Karoo News[_2_] Excel Programming 1 January 30th 06 02:40 PM
Modify Recorded SQL Query to "Insert, Delete, Update" MSweetG222 Excel Programming 2 October 25th 05 01:49 AM
Modify "pick from list" to read named range N E Body Excel Programming 3 January 29th 05 09:21 PM
Modify ? Tom Ogilvy "count visible filter records" Todd F. Excel Programming 1 June 11th 04 09:03 PM


All times are GMT +1. The time now is 06:28 AM.

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"