lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I was reading the article below and then tried the code below by myself. Not sure why the code below works! password is a function and I want to pass 1 to that function. so I expected to do these (the password is 1)
workbooks(1).password "1"
OR
workbooks(1).password 1
++++++
Sub mypassword()
Workbooks(1).Password = 1
End Sub
I was reading the article below and then tried the code below by myself. Not sure why the code below works! password is a function and I want to pass 1 to that function. so I expected to do these (the password is 1)
workbooks(1).password "1"
OR
workbooks(1).password 1
++++++
Sub mypassword()
Workbooks(1).Password = 1
End Sub