Results 1 to 4 of 4

Thread: Running a VBA in all excel files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by msiyab View Post
    The following VB code (amount to words conversion) was given by Rick very long back. Its been really helpful to me. However, it only works on one excel. If at all i need to make it work on a new excel file, i need to paste the code and do all the procedures all over again to get the formula running.

    Could someone show a shortcut or anything on how i can save this formula, so that whenever i open a new excel file, the formula is already available. As i am a newbie to Excel i would require detailed explanation.
    Start a new workbook, copy/paste the code into it, then save the workbook using "Excel Macro-Enabled template" as the "Save as type" (use the directory that Excel defaults to, but give the workbook a name you will recognize as having this code in it). That's it... the next time you start a new Excel file that needs this functionality, click New, in the template list that appears, click on "My templates..." and choose the file with the name you just save the above under.
    Last edited by Rick Rothstein; 12-26-2012 at 12:58 PM.

Similar Threads

  1. Replies: 9
    Last Post: 05-31-2013, 11:31 PM
  2. Saving and Running Macro For Multiple Files / Users
    By Charles_ in forum Excel Help
    Replies: 1
    Last Post: 01-07-2013, 09:10 AM
  3. Workbook Event running VBA question
    By jamilm in forum Excel Help
    Replies: 4
    Last Post: 12-29-2012, 12:12 AM
  4. Excel to Excel Data transfer without opening any of the files(source or target)
    By Transformer in forum Excel and VBA Tips and Tricks
    Replies: 14
    Last Post: 08-22-2012, 10:57 AM
  5. Send Mail Using VBA In Excel And Attach Files
    By macenmin in forum Excel Help
    Replies: 1
    Last Post: 08-03-2012, 01:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •