Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have found that it doesn't seem to be easy to set a VBA password
easily from within code. I figure that I probably have to go down the send keys route and so have set up the following sub Sub SetVBAPassword() Dim strPassword As String strPassword = "monkey" Excel.SendKeys "%TE^{TAB}VP", False Excel.SendKeys strPassword & "{TAB}" & strPassword, False Excel.SendKeys "{Enter}", False End Sub My problem is that this code will only work if it is in the same project as the one you want to set the password for. I want to be able to set the password from another workbook but don't know how to do it. Can someone please help me. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
setting excel formula from code | Excel Discussion (Misc queries) | |||
Code about setting Y Axes scale. | Charts and Charting in Excel | |||
change language setting using VBA code | Excel Worksheet Functions | |||
setting tab order by code | Excel Programming | |||
Setting Decimal in code | Excel Programming |