Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SaveAs - user pushing cancel corrupts the file

I have a spreadsheet that has a lot of pivot tables, (~10 M). Early versions
of it run fine, but if I Cancel the SaveAs dialog box, the file becomes
corrupted.
After cancelling Save As, Excel crashes everytime I try to update a pivot
table.
I have recreated the file twice. It always works until I push Cancel

Is there something I'm supposed to be doing that I'm not?


savemsg = MsgBox("Please provide a new name for the Summary Mail file.
Please do not push Cancel", vbInformation, SaveAs)

fname = Application.GetSaveAsFilename

If fname < False Then
ActiveWorkbook.SaveAs Filename:=fname
End If

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
Excel Copy, Paste not working properly, corrupts file Marvin B Excel Discussion (Misc queries) 1 March 3rd 09 04:21 PM
File corrupts when saving under a different name - xl2000 Clayman Excel Discussion (Misc queries) 8 June 18th 07 07:19 PM
How check for No/Cancel Button when SaveAs and file already exists? Joe HM Excel Programming 7 April 19th 05 10:53 AM
Cancel Macro is user selects 'cancel' at save menu Mark Excel Programming 1 April 6th 05 05:45 PM
Changing "Cancel" in SaveAs universal[_21_] Excel Programming 2 December 21st 03 12:09 PM


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