+ Reply to Thread
Results 1 to 2 of 2

Perform macro "on open" specific file- store macro in Personal Macro Workbook?

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Perform macro "on open" specific file- store macro in Personal Macro Workbook?

    OK, so I have an extremely fickle and technologically helpless boss who is too lazy and doesn't ever remember how to maximize a workbook within a maximized Excel and then put filters on it. We have a report the is scheduled via our online system to generate every day, but the result is a brand new file each time, thus I can't put a macro in the file itself. What I want to know is if it is possible to put a macro in my Personal Macro Workbook that will run if a newly opened file is "Concrete name of the file.xls". Fortunately, as indicated, the file name is static and doesn't change with the date, so I won't have to deal with an ever changing file name. I understand that there's a fairly easy way to program a macro to run upon opening a file, as long as the macro is within that file, although I've never done such a thing. What I'd like to do is essentially the same thing, but have the macro stored in the personal file.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Perform macro "on open" specific file- store macro in Personal Macro Workbook?

    You would need to create an addin really & place a button on the Ribbon or QAT
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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