message boxes

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Message boxes

Message boxes

resolvedResolved · Low Priority · Version 2003

Matt has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

Message boxes

How can a message box automatically appear on opening a workbook?

RE: Message boxes

Matt,

Write a handler for the Workbook Open event, in the ThisWorkbook module - i.e.

Private Sub Workbook_Open()
MsgBox ("Hi there!")
End Sub


/Roy


 

Excel tip:

Repeating headings on spreadsheets that print on more than one page

By default when you print a spreadsheet out and it prints on more than one page, the headings at the top and the side of the spreadsheet don't appear on all the pages following page 1.

To get Excel to repeat headings on all pages when printing, go to File - Page Setup - Sheet, then select the rows to repeat at the top of pages, and the columns to repeat at the side of pages by clicking on the red arrows at the right side of the two boxes under the 'Print titles' area. Then click OK.

If you view your spreadsheet in Print Preview, you should see the headings being repeated on each page.

View all Excel hints and tips


Server loaded in 0.07 secs.