LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default run macro for all files in directory - error in my code

On May 11, 4:27 pm, David Sisson wrote:
On May 11, 12:58 pm, cass calculator wrote:

Looks like you dropped this line off when merging the two files.

Sub ChangeLinks()
Set wbk = Workbooks("GrossAdds.xls") <<<---


yeah I did that because the first macro only words for a specific file
and that line desginates the file. The second macro should set the
workbook to whatever file is open in the for loop



 
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
Macro - Open all word files in a directory Dileep Chandran Excel Worksheet Functions 11 December 19th 06 02:12 PM
How do you run a macro on all files in a directory? vidguru[_2_] Excel Programming 1 November 27th 06 04:52 PM
Macro to move files from one directory to another Barb Reinhardt Excel Programming 0 June 21st 06 05:33 PM
Macro to enumerate subdirs and files in a directory! bookworm98[_9_] Excel Programming 3 January 27th 04 07:48 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 04:52 PM.

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

About Us

"It's about Microsoft Excel"