+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Deploying macros in all workbooks

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Deploying macros in all workbooks

    After recording a macro, how can I deploy it almost as if it were a plugin so whenever I open a new instance of Excel, I can hit my shortcut key and make it run or easily find the macro and run it?

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Deploying macros in all workbooks

    Hi,

    create the macro in a new file, save the file as personal.xlsb and save that file in

    C:\Documents and Settings\<username>\Application Data\Microsoft\Excel\XLSTART

    Then set the file to be hidden (and save it again). The file will now be loaded every time you start Excel, but it will not pop to the foreground because it's hidden. You can still use all the macros that are stored with your personal.xlsb.

    hth

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Re: Deploying macros in all workbooks

    That's great thanks!

  4. #4
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Re: Deploying macros in all workbooks

    Starting a macro.. I wondered if I could make a dialogue to load a file, in this macro's instance an xml. As I name them differently I couldn't call the right file, so wondered if I could open excel, run the macro which asks for the right file and then finishes the macro. Is this difficult to do?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Deploying macros in all workbooks

    See the GetOpenFilename method.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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