ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   workbook open password protected (https://www.excelbanter.com/excel-programming/443901-workbook-open-password-protected.html)

Johnnyboy5[_2_]

workbook open password protected
 
workbook open password protected.

I need to be able to get a message box to appear with some
information
- before the Password message box appears. I can get the message to
appear after the Password box - but not before.

any ideas.
Johnnyboy

Gord Dibben[_2_]

workbook open password protected
 
You will not be able to do this from within the passworded workbook you are
opening.

Not open.........no code will run to provide message.

You could open the workbook from another workbook which had code to provide the
message then move on to opening the passworded workbook.

Sub open_other()
MsgBox "message before opening other workbook"
Workbooks.Open Filename:= _
"C:\Program Files\Microsoft Office\Exceldata\otherbook.xls"
End Sub


Gord Dibben MS Excel MVP


On Tue, 16 Nov 2010 04:10:07 -0800 (PST), Johnnyboy5
wrote:

workbook open password protected.

I need to be able to get a message box to appear with some
information
- before the Password message box appears. I can get the message to
appear after the Password box - but not before.

any ideas.
Johnnyboy


Johnnyboy5[_2_]

workbook open password protected
 
On Nov 17, 5:44*pm, Gord Dibben wrote:
You will not be able to do this from within the passworded workbook you are
opening.

Not open.........no code will run to provide message.

You could open the workbook from another workbook which had code to provide the
message then move on to opening the passworded workbook.

Sub open_other()
MsgBox "message before opening other workbook"
* * Workbooks.Open Filename:= _
* * * * "C:\Program Files\Microsoft Office\Exceldata\otherbook.xls"
End Sub

Gord Dibben * * MS Excel MVP

On Tue, 16 Nov 2010 04:10:07 -0800 (PST), Johnnyboy5



wrote:
workbook open password protected.


I need to be able to get a message box to appear with some
information
- before the Password message box appears. *I can get the message to
appear after the Password box - but not before.


any ideas.
Johnnyboy


thanks - will test in work tomorrow.

john

Johnnyboy5[_2_]

workbook open password protected
 
On Nov 17, 7:22*pm, Johnnyboy5 wrote:
On Nov 17, 5:44*pm, Gord Dibben wrote:





You will not be able to do this from within the passworded workbook you are
opening.


Not open.........no code will run to provide message.


You could open the workbook from another workbook which had code to provide the
message then move on to opening the passworded workbook.


Sub open_other()
MsgBox "message before opening other workbook"
* * Workbooks.Open Filename:= _
* * * * "C:\Program Files\Microsoft Office\Exceldata\otherbook.xls"
End Sub


Gord Dibben * * MS Excel MVP


On Tue, 16 Nov 2010 04:10:07 -0800 (PST), Johnnyboy5


wrote:
workbook open password protected.


I need to be able to get a message box to appear with some
information
- before the Password message box appears. *I can get the message to
appear after the Password box - but not before.


any ideas.
Johnnyboy


thanks *- *will test in work tomorrow.

john- Hide quoted text -

- Show quoted text -


Hi - worked just great - thanks -


All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com