LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
MDW MDW is offline
external usenet poster
 
Posts: 117
Default Detect Whether Workbook Has Pwd Without Opening It

I've got some VBA code that opens various Excel workbooks and tests their
contents. Occasionally, I run across workbooks that are password protected.
There's no way I'm going to know what these passwords are, nor do I care. I'd
like the code to simply skip over these files and not open them.

Does anyone know of a way to examine a file (either with Excel or with the
FileSystemObject) and tell whether it's got a password?

Incidentally, I'd like to do the same thing if the workbook is protected as
well.

I'd appreciate any advice you might have.
--
Hmm...they have the Internet on COMPUTERS now!
 
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
How to detect excess rows in txt or csv files before opening? 39N 95W Excel Programming 3 December 21st 05 08:19 PM
How to detect excess rows in txt or csv files before opening? 39N 95W Excel Programming 0 December 21st 05 04:59 PM
How to detect and view more than 65,536 rows when opening a DBF 42N83W Excel Programming 1 December 11th 05 01:39 PM
How to hide a workbook and to detect a hidden workbook in visual basic jn1971[_3_] Excel Programming 0 May 5th 04 10:08 PM
Detect more info when workbook does not ack right. Tom Ogilvy Excel Programming 0 July 11th 03 02:34 PM


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