+ Reply to Thread
Results 1 to 2 of 2

Applying and saving an auto_open macro to all open workbooks

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Applying and saving an auto_open macro to all open workbooks

    Hi all,

    I have a number of reports that i need to apply an Auto_Open macro to so that if someone opens any of the reports it will automatically refresh... I was hoping there was a way that i can do it in one go, opposed to going into 40 different reports and creating a new macro - can i do this?

    K

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Applying and saving an auto_open macro to all open workbooks

    Yes, but you'll need to write the vba to open the files, access the VBE and insert your code. You can insert from a text file, so may be worth while looking at that.

    This should help

    http://www.cpearson.com/excel/vbe.htm
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-29-2013, 06:19 PM
  2. Applying macro within a custom macro button to all workbooks
    By clearwaterdave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2007, 12:16 PM
  3. Applying macro within a custom macro button to all workbooks
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-14-2007, 03:34 PM
  4. Saving Macro so All Workbooks can Use It
    By Jay637 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2007, 09:52 PM
  5. Saving all open workbooks
    By Greg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2006, 04:40 AM

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