Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Password issue resolved, thanks to Gary Kermidas.
Quote:
"Rick S." wrote: Moving forward... So far I found that the code: "If file.Type Like "*Microsoft Excel*" Then" is not functioning as planned and now my new code functions and recognizes the files in the folder. : "For Each file In Folder.Files sFileName = file If Right(sFileName, 3) = "xls" Then" Butt, now I can't seem to pass the password to the file that will be opened without user intervention, I am prompted with a dialog box to enter a password, select Read Only or select Cancel. "Workbooks.Open FileName:=file.Path, Password:=€śxxxx€ť" The above simply opens the file with the dialog box for a password. I have also tried "Workbooks.Open FileName:=file.Path, WriteResPassword:=€śxxxx€ť" which fails to recognize the password. It appears I only need to resolve the password issue, I have thousands of files to iterate thru and retyping the password would be something I would whine about for generations to come. Any help other than my own would be aprreciated LOL |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help with Error 'object variable or with block variable not set' | Excel Programming | |||
Run-Time error '91': Object variable of With block variable not set | Excel Programming | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming | |||
Pivot Table - Object variable or with block variable not set? | Excel Programming |