+ Reply to Thread
Results 1 to 2 of 2

Auto Open Files and Run Macros

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Auto Open Files and Run Macros

    Hi guys,

    Just wondering if there is a way to automatically open a file, run a macro within the file, then save and close the file after the macro is completed.

    So for example, I have a file called "Main" and 11 other files named "1", "2", "3", "4"....etc
    Each numbered file draws data from the "Main" file.

    So is there a way to open file "1", run a macro within that file, then save and close, then move on to file "2" and repeat all the way up to file "11" ??

    Not sure if this is even possible so any feedback would be great thanks.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Auto Open Files and Run Macros

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Auto macros to open certain tab depending on Day and time????
    By Dibbley247 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 12:58 PM
  2. auto open excel files in the folder
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2009, 02:19 AM
  3. auto open the excel files in the folder
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2008, 04:16 AM
  4. Need to open two macro excel files for macros to work
    By nigelbarham in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2006, 11:40 AM
  5. Macros to Open & Update Files
    By Diane Alsing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2005, 08:06 PM

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