+ Reply to Thread
Results 1 to 2 of 2

Run a macro when opening spreadsheet

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    22

    Run a macro when opening spreadsheet

    Afternoon All,

    i need to know how to activate a macro when opening a workbook. Each day the workbook has the same beginning of the name for example cash, but the last part is a number which changes daily. All i want to do is run the macro when opening any workbook that begins with the word cash...

    Thanks for any help.

    Craig.

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Re: Run a macro when opening spreadsheet

    The easiest way to run a macro when a workbook opens is to place your code in the ThisWorkbook module in the Workbook_Open subroutine.

+ 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