Hi everyone,
Below is my codes. It does try to open the file, but it keeps asking me for password although I already include the password in the codes. What have I got wrong?
Thanks
Below is my codes. It does try to open the file, but it keeps asking me for password although I already include the password in the codes. What have I got wrong?
VBA Code:
Sub openfile()
Dim wb As Workbook
Set wb = Workbooks.Open(FileName:="C:\...", Password:="password")
End Sub
Thanks