Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() When using a macro to open a spreadsheet, if the spreadsheet is password protected & I know what the password is, what code would I use to open the spreadsheet with the password? thanks -- rocket0612 ------------------------------------------------------------------------ rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492 View this thread: http://www.excelforum.com/showthread...hreadid=384808 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub OpenProtectedFile()
Dim wb As Workbook Dim ws As Worksheet Set wb = Workbooks.Open("C:\Password Protected File.xls", , , , "password1", "password2") Set ws = wb.Sheets("Sheet1") ws.Activate ws.Cells(1, 1).Value = "Modified by VBA" End Sub "rocket0612" schreef in bericht ... When using a macro to open a spreadsheet, if the spreadsheet is password protected & I know what the password is, what code would I use to open the spreadsheet with the password? thanks -- rocket0612 ------------------------------------------------------------------------ rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492 View this thread: http://www.excelforum.com/showthread...hreadid=384808 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I forgot my password to open an excel document, how do I open it? | Excel Discussion (Misc queries) | |||
How to open Excel spreadsheet when forgotten password | Excel Discussion (Misc queries) | |||
How to open Excel spreadsheet when forgotten password | Excel Discussion (Misc queries) | |||
How can I open an excel spreadsheet if I forgot the password? | Excel Worksheet Functions | |||
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? | Excel Discussion (Misc queries) |