+ Reply to Thread
Results 1 to 3 of 3

Import .bas file into a workbook.

  1. #1
    Registered User
    Join Date
    07-24-2008
    Location
    Dothan
    Posts
    2

    Import .bas file into a workbook.

    I have a macro that I wrote for a Travel Schedule at my job. This schedule is produced by someone else twice a month. I am currently emailing everyone the .bas file and asking them to import it into vba so that the macro will work with each iteration of the new travel schedule.

    I am wondering how I can code the importing of a macro into an existing workbook to make this process easier for everyone. I can share my existing code if anyone needs it.

    Thanks,

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Import .bas file into a workbook.

    Hello laconicnexus,

    Welcome to the forum!

    Here is an example macro. You will need to change the FileSpec variable to match you file's directory and anme.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Import .bas file into a workbook.

    Alternative: send each user a file that contains the macro. Let that file save itself as an Addin.
    Please Login or Register  to view this content.



+ 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