Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default 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 -
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dont open a Workbook is Password protected John Excel Programming 3 June 18th 09 03:52 PM
vba macro open password protected workbook Ray Excel Programming 2 March 31st 06 04:10 PM
Open workbook that is protected with password ianripping[_67_] Excel Programming 2 June 1st 04 11:48 AM
Open password protected workbook. Tom Excel Programming 3 April 16th 04 03:43 PM
Open a password protected excel workbook from second workbook to fetch data using dynamic connection kaustav choudhury Excel Programming 2 April 3rd 04 06:18 AM


All times are GMT +1. The time now is 11:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"