+ Reply to Thread
Results 1 to 6 of 6

Excel file referencing a large central macro file?

  1. #1
    Registered User
    Join Date
    01-25-2011
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel file referencing a large central macro file?

    Hi there,

    I am working on 2 major excel dashboards that has many macros. I am thinking of consolidating all of the tools and macros into one VBA file, so that there will be one file of "common macros" which I can place onto sharepoint and have all of the spreadsheets I develop in the future point to that one file and use its functions.

    Are there any solutions that can solve it directly, or get close to it?

    Thanks!
    Alan

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel file referencing a large central macro file?

    Hi alanzero and welcome to the forum.

    Searching the net gave me http://www.vbaexpress.com/kb/getarticle.php?kb_id=279

    I think the starts addressing your question.

    The search was "excel vba run macro from another workbook"
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-25-2011
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel file referencing a large central macro file?

    Thanks for the prompt reply!

    I am trying to avoid referencing from another workbook. I prefer referencing actually from another module.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel file referencing a large central macro file?

    Ok,

    This is normal Macro Sub. See http://www.anthony-vba.kefra.com/vba/vbabasic1.htm

  5. #5
    Registered User
    Join Date
    01-25-2011
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel file referencing a large central macro file?

    I want to put the macro on a html page online, and then simliar to java where in the beginning you can "import xxx.file"

    In a blank excel workbook, in the macro, I can just type something like "import xxx.macro" and the workbook would have all the functions in the html page.

    is that possible?

    Thanks

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel file referencing a large central macro file?

    Hi,

    I think you need a .BAS file to import. See http://www.pcreview.co.uk/forums/inc...a-t994210.html and a code snippet on it.
    Or better is your question on MSDN at http://support.microsoft.com/kb/219905

    hope this helps

+ 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