LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi

yes, basically you're making a macro to run when the workbook opens ... to
get to the ThisWorkbook module, right mouse click on one of the sheet tabs
in the workbook and choose view code - down the left hand side of the VBE
Window you should see the Project Explorer .... and your filename should be
listed in bold and brackets - if you can't see the project explorer window
choose view / project explorer
then amongs the objects under your workbook's name you'll see ThisWorkbook -
double click on it and then on the right hand side of the screen choose
Workbook from the left most drop down box and you'll get a workbook_open
procedure created for you with

sub workbook_open()

end sub

the code needs to go in here.

i'm not sure what references to give you - Chip Pearson has a good article
on events http://www.cpearson.com/excel/events.htm and a general basic
reference (but doesn't mention workbook_open macros)
http://web.archive.org/web/200312040...01/default.asp

but if you'ld like to post back with what you want to happen when the
workbook opens we can help you with the code.

Cheers
JulieD

wrote in message
...
Thanks Julie,

Where do I go for this? (IE File, Edit, Etc) Am I somehow
making a macro run upon opening? I can't find my Que book
on Excel which would probably have this info in it. It's a
BIG book. (I think for something such as excel) Are there
links for this?

Thanks again.



-----Original Message-----
Hi Phill

yes, you can get a message box (for a message) or an

inputbox (if you want
to ask a question) or a customised userform to display

when a workbook is
opened by putting worksheet_open code into the

ThisWorkbook module of the
workbook. Note, however, they need to have their security

settings set to
medium (or lower) and choose to "enable" macros (if it

appears) when opening
the workbook.

sample Workbook_Open code would be as follows:
---
Private Sub Workbook_Open()
MsgBox "Hi " & InputBox("what is your name")
End Sub
---

if you'll like additional help please post back with more

details

Cheers
JulieD


"Phill" wrote in

message
...
Is it possble to make a dialog box pop-up when someone
opens a spreadsheet?



.



 
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
How do I make a 3-dimensional plot in Excel? John W. Mordosky Charts and Charting in Excel 6 April 3rd 23 06:58 PM
when opening excel I receive a message that says file can't be fo. Ken Excel Discussion (Misc queries) 3 February 22nd 05 12:13 AM
Excel Error Message tonyf Excel Worksheet Functions 1 February 14th 05 04:24 AM
How to make one CSV file from two Excel sheets? Marek L. Excel Discussion (Misc queries) 3 February 13th 05 07:47 PM
How do I make an If-Then formula in Excel? kdub1980 Excel Worksheet Functions 3 November 11th 04 06:08 AM


All times are GMT +1. The time now is 09:40 AM.

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"