+ Reply to Thread
Results 1 to 5 of 5

Can Excel access and execute external code?

  1. #1
    Registered User
    Join Date
    12-22-2011
    Location
    Washington, United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Exclamation Can Excel access and execute external code?

    I have an Excel file that executes codes to find data based on user-defined criteria. This file will be copied by 8 other groups and all 9 copies will be used for their group's specific user-defined criteria. I'm hoping to move my code into an external document so I can have a single source of code for all 9 files. Is there a code I can put in Excel that opens and executes a code document? If not, then any other suggestions?


    Also, I can only use Notepad++ (company policy). I've been programming in VBA but I (vaguely) know Perl, which some people say works better for opening external documents.

    Thanks!!



    (P.S. I noticed an older thread that had a similar question but the person never responded back so I don't know if the suggestion worked.)

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Can Excel access and execute external code?

    No, but it sounds like you need an add-in. You can have this on a shared network drive if you like and make changes to it.

  3. #3
    Registered User
    Join Date
    12-22-2011
    Location
    Washington, United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Can Excel access and execute external code?

    What add-in or do I write one?

    This will be on a shared server, one folder, but separate files. I can't copy over the files when I make large changes since the files will contain historical data, and I have multiple modules so it can be time consuming if I make a lot of changes across the modules.
    Last edited by shadyferret; 12-14-2012 at 04:16 PM.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Can Excel access and execute external code?

    It sounds like you need to or all your code in an addin rather than a workbook. This can then be shared and our informant of any data which would exist in other workbooks

  5. #5
    Registered User
    Join Date
    12-22-2011
    Location
    Washington, United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Can Excel access and execute external code?

    Okay, I got it now. After you suggested an add-in, I looked it up and read how to create your own add-in macro and that appears to be a solution. Thanks!

+ 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