-
Loading a password protected Excel file using VB6 code
I have a VB6 application that processes Excel spreadsheets. I do not have any problems loading an unprotected Excel sheet using the following code...
ExcelApp.Workbooks.Open Filename:= <Path & Filename>
However, I have a problem loading a password-protected file using the following code...
ExcelApp.Workbooks.Open Filename:= <Path & Filename>, Password:=Password
where password is the correct password contained in a string variable Password
The system simply hangs up. I even tried putting quotes around the password...
ExcelApp.Workbooks.Open Filename:= <Path & Filename>, Password:=Chr(34) & Password & Chr(34)
and it still gets hung up. A Google search on the topic indicates that many have the same problem but could not find a solution. Any help would be appreciated.
Similar Threads
-
By anonymous in forum VB Classic
Replies: 1
Last Post: 07-07-2002, 11:56 AM
-
Replies: 0
Last Post: 10-29-2001, 02:19 PM
-
By Matt Markus in forum VB Classic
Replies: 5
Last Post: 10-26-2001, 02:43 PM
-
By Phil Weber in forum VB Classic
Replies: 3
Last Post: 10-25-2001, 04:09 PM
-
By Stephen Price in forum VB Classic
Replies: 2
Last Post: 05-26-2000, 03:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|