Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
certain_death
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File


Hi,
Can anyone help?
I would like a pop up message box upon opening a spreadsheet, that
would contain some of assumptions in the spreadsheet...
Please help if you can...
Nice one
Regards
Mark


--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=547494

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File

Option Explicit
Sub Auto_Open()
msgbox "Your message here" & vblf & "second line if you have one"
end sub

This goes into a general module.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

certain_death wrote:

Hi,
Can anyone help?
I would like a pop up message box upon opening a spreadsheet, that
would contain some of assumptions in the spreadsheet...
Please help if you can...
Nice one
Regards
Mark

--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=547494


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File

This mod of Dave's code will also present the value in cell A1 in the Message
Box if you wish....

Option Explicit
Sub Auto_Open()
MsgBox "Your message here" & vbLf & Range("a1").Value
End Sub

Vaya con Dios,
Chuck, CABGx3




"Dave Peterson" wrote:

Option Explicit
Sub Auto_Open()
msgbox "Your message here" & vblf & "second line if you have one"
end sub

This goes into a general module.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

certain_death wrote:

Hi,
Can anyone help?
I would like a pop up message box upon opening a spreadsheet, that
would contain some of assumptions in the spreadsheet...
Please help if you can...
Nice one
Regards
Mark

--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=547494


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
certain_death
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File


Hi guys
Thanks for your help
As a further help is there a way of changing the message box so the
user doesnt have to click ok....it just stays there for 5 seconds and
disappears?
Thanks
Mark:) :)


--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=547494

  #5   Report Post  
Posted to microsoft.public.excel.misc
Zygan
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File


never heard or seen a away to have a msgbox without a ok button i
pictures and cancel buttons and what not but never without a button,
however you could write
workbook_open
userform1.show
end sub

This will display a form called sub and the forms have way more visual
appearance and conditioning that can be applied try putting this in the
code of the form and it shall work

Private Sub UserForm_Activate()
Application.Wait Now + TimeValue("00:00:10")
unload Me


End Sub



cheers


--
Zygan
------------------------------------------------------------------------
Zygan's Profile: http://www.excelforum.com/member.php...o&userid=34423
View this thread: http://www.excelforum.com/showthread...hreadid=547494



  #6   Report Post  
Posted to microsoft.public.excel.misc
certain_death
 
Posts: n/a
Default Pop up MsgBox upon opening Excel File


That's great..that will be very helpful

Thanks to all concerned...
Take it easy
Mark
:) :)


--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=547494

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
Opening an excel file on another computer changes the setup on fil Viviana Excel Discussion (Misc queries) 3 November 29th 05 08:50 PM
Excel file not opening Erwin Excel Discussion (Misc queries) 1 November 28th 05 01:14 AM
Excel getting Error - file format is not valid WHEN OPENING babu Excel Discussion (Misc queries) 1 August 24th 05 09:09 PM
Problem Opening An Excel file. - by yk ilikecy Excel Discussion (Misc queries) 0 February 4th 05 08:19 AM
Problem opening an XML file in Excel - getting "ns1:macrosPresent" rprondeau Excel Discussion (Misc queries) 0 December 15th 04 03:39 PM


All times are GMT +1. The time now is 09:34 PM.

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

About Us

"It's about Microsoft Excel"