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: 3
Default Reading Data from workbooks without opening them ...

I have a VBA routine (XL2003) that scans the harddrive for workbooks with a
certain pattern (first 4 charac ters of name = "CLSd") in the filename. I
am currently using ExecuteExcel4Macro to read data from each of these
workbooks without having to open each one. I do this for performance
purposes as it is much quicker than opening and closing each workbook
individually. Where I run into a problem is when the workbook is password
protected. When a password is encountered; excel prompts the user to enter a
password. Apparently I can't pass the password to avoid this and that is my
problem. The user doesn't know the password because it is calculated by a
macro. I can calculate the password, but I can't pass it to avoid havint he
user be prompted. The bottom line is that even if the user knew the
password, I don't want the routine to prompt the user for 40 or more
passwords each time the routine runs.

If anyone knows how to get around this limitation, I would very much
appreciate assistance with this issue. If not; is there another way to read
data from a closed workbook that does allow for passing passwords so that
data from all of the workbooks found during the scan can be retrieved
without user intervention?

Thanks in advance for any assistance given.
Ralph Fraley


 
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
Opening and reading a higher version of Excel Dave Peterson Excel Discussion (Misc queries) 0 February 25th 08 02:41 PM
Opening and reading a higher version of Excel Kevin B Excel Discussion (Misc queries) 0 February 25th 08 02:24 PM
Copy data from diff workbooks but without opening sheets raja Excel Programming 1 September 21st 05 02:21 PM
Reading information from all workbooks in a folder... H. Rye Excel Programming 2 January 2nd 04 02:55 PM
Reading Data From Series of External Workbooks Marston[_2_] Excel Programming 2 October 21st 03 07:09 PM


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