+ Reply to Thread
Results 1 to 3 of 3

how do i make it so my macros are always available when needed

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    port charlotte, florida
    MS-Off Ver
    Excel 2003
    Posts
    7

    how do i make it so my macros are always available when needed

    i create a monthly report that saves as a csv file. Yesterday i added two macros and saved as a macro enabled sheet. my question is this, when i run my report again, how do i utilize the same macros?

    can i make the macros available from the view macro section for every spreadsheet i create so if i should need them they are there?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: how do i make it so my macros are always available when needed

    Hi, bsesender,

    if itīs only you who will use the macro (and always on the very same computer) the personal.xlsb could be the place as this workbook is loaded when Excel starts up. Alternative to that: put the macro enabled workbook in tge startup folder, it will be loaded each time Excel starts. If you want to share the macros or use them on different computers you should consider creatiung an AddIn (have a look at Creating An XLA Add-In For Excel for some information).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how do i make it so my macros are always available when needed

    Open the VBEditor and move the macros into a module in the Personal.xls workboook project.

    If this module doesn't exist, go to an empty sheet and turn on the Macro Recorder to record a junk macro, but be sure to tell Excel to place the macro into the Personal Macro Workbook. Type some junk and turn off the recorder. This just created the Personal.xls workbook for you.

    2012-11-16_1035.png

    Your macros may need some attention, make sure there are no references to ThisWorkbook in them or they will refer to the hidden Personal.xls workbook instead of the activeworkbook or such.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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