LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default error with saveas....

this code saves the file like i want it to, but if prompted to overwrite and
i click 'no', i get an error. how can i get rid of the error or wait for the
next worksheet change?



Sub Worksheet_Change(ByVal Target As Range)
With Worksheets("Page 1").Range("A5")
If Not .Range("A5") Is Nothing Then
SaveAs Filename:="H:\Daily Reports\" & Worksheets("Page
1").Range("A12").Text & Worksheets("Page 1").Range("H9").Text & "to" &
Worksheets("Page 1").Range("K9").Text & ".xls"
End If
End With

End Sub

 
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
SaveAs method error Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 October 6th 09 09:05 PM
SaveAs causes 0x800A03EC error Justin Young Excel Programming 0 May 25th 05 06:29 PM
error message with saveas DJA Excel Discussion (Misc queries) 6 February 17th 05 06:03 PM
SaveAs Error Steven K Excel Programming 1 September 17th 04 05:41 PM
Error on SaveAs Macro Kevin Excel Programming 1 December 3rd 03 03:58 AM


All times are GMT +1. The time now is 06:59 PM.

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"