Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Run Macro on many files at once

Riaz,

You can create a loop and have the macro open each file, do the work, save
and close the file.

There are a number of ways to specify the file names.
Check Google and you should be able to find many examples.
(this has been a frequent request in this group).

Go to this site and download the Google Search add-in
www.rondebruin.nl/Google.htm
it is a great help in searching Google.

steve

"Riaz" wrote in message
...
I have about 200 data files (.WK1 files) with 40 rows of
entries in each data file. I need to delete the first
twenty rows in all the 200 files. I wrote a macro to do
that but i wanted to know if theres a way to Run the macro
on all 200 files at once instead of running it manually by
opening each file everytime?
Any help would be greatly appreciated! Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Files Using a Macro Mark Costello[_2_] Excel Discussion (Misc queries) 0 January 29th 08 03:48 PM
working with .txt files in a macro Peggy Excel Discussion (Misc queries) 3 January 14th 08 02:26 PM
Macro to create new files btrotter Setting up and Configuration of Excel 3 November 14th 07 07:03 PM
Macro Help- combining "CS" files Judyt Excel Discussion (Misc queries) 1 February 17th 05 02:19 AM
run macro for all files in the directory igor Excel Programming 3 July 17th 03 03:48 PM


All times are GMT +1. The time now is 02:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"