ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pop Ups (https://www.excelbanter.com/excel-programming/294583-pop-ups.html)

Fraggs

Pop Ups
 
I've seen some spreasheets where when you open it, a kessage box appear
and says "something". How is this achieved? I'm really new to VB b
the way so make it as simple as you can please

--
Message posted from http://www.ExcelForum.com


DSC[_3_]

Pop Ups
 
If it is A password then you can save the workbook as passwor
protected

or else use VBA to write a message box in the workbook_Open Event.

If you want to do this

right click the picture next to the file menu item
choose view code
change the first drop down box to workbook

and then type

msgbox "This is my Text"

every time you open the workbook the messagebox appears

Hope this helps

Davi

--
Message posted from http://www.ExcelForum.com


Fraggs[_2_]

Pop Ups
 
That exactly what I was looking for, thanks

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

Pop Ups
 
Sub Auto_Open()
MsgBox "Hello", vbInformation
End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Fraggs " wrote in message
...
I've seen some spreasheets where when you open it, a kessage box appears
and says "something". How is this achieved? I'm really new to VB by
the way so make it as simple as you can please.


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 05:27 PM.

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