gssachin
Board Regular
- Joined
- Nov 14, 2013
- Messages
- 155
Hi,
I put following code in my workbook macro
.Formula = ("=VLOOKUP("a",'C:\Misc\TestDir\[2016_TestWB.xls]Data'!$B$2:$E$4,3,0)")
My C:\Misc\TestDir\2016_TestWB.xls is password protected (Password is "Abc123")
If my above file open and I run the Macro then its working fine (Not getting popup for "Password")
But when the said workbook is close then Excel asking password and then running the code.
So where I can declare the password of workbook so excel will not open the file but also not give popup to enter password also.
I put following code in my workbook macro
.Formula = ("=VLOOKUP("a",'C:\Misc\TestDir\[2016_TestWB.xls]Data'!$B$2:$E$4,3,0)")
My C:\Misc\TestDir\2016_TestWB.xls is password protected (Password is "Abc123")
If my above file open and I run the Macro then its working fine (Not getting popup for "Password")
But when the said workbook is close then Excel asking password and then running the code.
So where I can declare the password of workbook so excel will not open the file but also not give popup to enter password also.
Last edited: