LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run macro <iif</i 001.xls exists


Aidan, apologies for my macro shortcomings.

Although all the order spreadsheets are in the same folder, other files
are in there too, including a few spreadsheets.

Can you show me how to incorporate the ON ERROR command into the
following abbreviated code that is in my Macro

Workbooks.Open Filename:="\\Server\common\50000.xls" etc
Workbooks.Open Filename:="\\Server\common\50001.xls" etc
Workbooks.Open Filename:="\\Server\common\50002.xls" etc

Looking it up online, there seems to be an ON ERROR GOTO NEXT option
which I imagine moves to the next line of code. I have tried
incorporating it myself without success.


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=546681

 
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 to move files gets an error if it already exists... [email protected] Excel Worksheet Functions 6 March 7th 07 09:46 PM
MACRO VBA TO SAVE EVEN IF FILE EXISTS coconutt Excel Programming 1 February 23rd 06 06:37 PM
Macro help - "Save As" when a file already exists Dave Excel Programming 1 May 18th 05 07:38 PM
Exists? Tom Excel Programming 3 March 9th 05 10:43 AM
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" Pete McCosh Excel Programming 0 April 2nd 04 04:51 PM


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

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"