+ Reply to Thread
Results 1 to 3 of 3

Excel 2010 VB macro to open all files in folder and run a simple macro

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel 2010 VB macro to open all files in folder and run a simple macro

    Hi, I've recently upgraded to Office 2010. I was somewhat familiar with VB in earlier versions of Office. I usually use the recorder to set up my macros and adjust the simple things in VB. But, I'm really stuck. I've searched all over the forum and elsewhere on the web. I can't solve this one. Any help is appreciated!

    I need a macro to open all *.xls files in a folder, run a simple macro on them, then save and close. The number of files varies (usually less than 100 or so) and the names of the files vary, but they're always in the same folder. The macro just sets the zoom at 100% and does a simple find and replace.

    Thanks for any help!

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Excel 2010 VB macro to open all files in folder and run a simple macro

    Hi..

    See comment sin code to see what you will need to change to adapt to your situation..

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel 2010 VB macro to open all files in folder and run a simple macro

    Thank you, apo! I changed the find and replace to this:

    Please Login or Register  to view this content.
    Your code worked great. I appreciate your help!

+ 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. Macro to Open specific files in a Folder
    By lorena.tgarza in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-15-2012, 09:01 AM
  2. Macro to open up all files in certain folder
    By dpcp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2012, 03:26 PM
  3. exce; macro to open, save embedded pdf, word, excel, ppt files to a folder
    By mcledavid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2009, 05:17 PM
  4. Simple Macro to Open Files....
    By jkresch in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2008, 08:54 PM
  5. [SOLVED] Excel macro to open files within a folder
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2005, 04:05 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