Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default macro pauses

I have been running a macro for a few weeks. All of a sudden it began
stopping on one line, with no error message. I hit the play button and
the macro continues to the end.

Any ideas?

TIA
Gerry

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default macro pauses

Tell us what the line is, Gerry.
--
Gary Brown


"Gerry" wrote:

I have been running a macro for a few weeks. All of a sudden it began
stopping on one line, with no error message. I hit the play button and
the macro continues to the end.

Any ideas?

TIA
Gerry


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro pauses

Here is the line it is pausing on.

ActiveWorkbook.SaveAs Filename:="C:\Shared
Data\RetailPro\Retail\Rpro\PRINT\Inventory for G Site
old.txt",FileFormat:=xlText, CreateBackup:=False

Gerry


*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default macro pauses

My best guess is that in the past, after creating the file "Inventory for G
Site old.txt", it has been moved, deleted and/or name changed.

Try putting the following lines in front of the line that is pausing...

Application.DisplayAlerts = False 'turn warnings off
Kill :="C:\Shared Data\RetailPro\Retail\Rpro\PRINT\Inventory for G Site
old.txt"
Application.DisplayAlerts = True 'turn warnings on

This will delete the old file without stopping the code/displaying warnings
just before you are creating the file with your line...

ActiveWorkbook.SaveAs Filename:="C:\Shared
Data\RetailPro\Retail\Rpro\PRINT\Inventory for G Site
old.txt",FileFormat:=xlText, CreateBackup:=False


HTH,
--
Gary Brown

If this post was helpful, please click the ''''Yes'''' button next to
''''Was this Post Helpfull to you?".


"Gerry Waldram" wrote:

Here is the line it is pausing on.

ActiveWorkbook.SaveAs Filename:="C:\Shared
Data\RetailPro\Retail\Rpro\PRINT\Inventory for G Site
old.txt",FileFormat:=xlText, CreateBackup:=False

Gerry


*** Sent via Developersdex
http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default macro pauses

Thanks Gary

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
Excel 2003 pauses after copy or paste actions Inspector Gadget Excel Discussion (Misc queries) 7 September 28th 08 05:36 AM
Macro allowing pauses for editing David P. Excel Discussion (Misc queries) 1 May 8th 07 04:43 PM
printer pauses after each page can't just print 20 copies mecato Excel Discussion (Misc queries) 1 June 6th 06 06:35 PM
Creating a .bat file that opens, pauses & closes MS Excel alexa Excel Programming 15 August 22nd 05 08:58 PM
Excel macros should be able to record pauses, thread.sleep(23489) rcjcooke Excel Discussion (Misc queries) 0 June 24th 05 03:00 PM


All times are GMT +1. The time now is 10:38 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"