+ Reply to Thread
Results 1 to 2 of 2

How to run a macro as soon a a workbook (.xls) is opened?

  1. #1
    Sangamesh Acharya
    Guest

    How to run a macro as soon a a workbook (.xls) is opened?

    How to run a macro as soon a a workbook (.xls) is opened?

  2. #2
    Rowan Drummond
    Guest

    Re: How to run a macro as soon a a workbook (.xls) is opened?

    Use the Workbook_Open event. In Excel right click the Excel Icon just
    left of the File Menu. Select View Code. Paste the following and change
    as required:

    Private Sub Workbook_Open()
    MsgBox "Hello World!"
    End Sub

    Hope this helps
    Rowan

    Sangamesh Acharya wrote:
    > How to run a macro as soon a a workbook (.xls) is opened?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1