Vba: Open Password Protect Spreadsheets (1 Viewer)

DALIEN51

Registered User.
Local time
Today, 17:27
Joined
Feb 26, 2004
Messages
77
Hi all!

I have some Access 2000 VBA code which opens all of the Excel 2000 spreadsheets in turn in a particular folder. However, if one of the spreadsheets is password protected I want to ignore this file and move on to the next one...is this possible?

Any help most appreciated.

Neil
 

ghudson

Registered User.
Local time
Today, 12:27
Joined
Jun 8, 2002
Messages
6,194
Do you not get a runtime error when you try to open a password protected xls file? You can trap for the runtime error number to skip it and continue with the next file.
 

Users who are viewing this thread

Top Bottom