If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > How to get rid of "Excel recalculates..." message

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-06, 19:12
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
How to get rid of "Excel recalculates..." message

My Excel 2003 application creates several new Excel workbooks using VBA code. I have no problem with 2 created workbooks that do not have formulas. The one that does have formulas, when opened for the first time, displays this on closing: "Do you want to save the changes..." and "Microsoft Office Excel recalculates formulas when opening files last saved by an earlier version of Excel."

The file was created in VBA:

HTML Code:
Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs fileName:=wkBookName, FileFormat:= _
        xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
        , CreateBackup:=False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True
After I open and save the file the message goes away. This is frustrating to have this occur and see Excel mis-stating the facts in an application being developed for others to use. I know I can copy all formulas as values to get around this, but users may want to see the totals formulas to be assured that totals are actually summing all data rows in each column.

Why is Excel telling me I created the file with a earlier version?

Jerry
Reply With Quote
  #2 (permalink)  
Old 10-30-06, 15:14
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
The solution that works for me to eliminating the "Excel recalculates formulas..." message when reopening a workbook with formulas that has been created in VBA using "Saveas", is to open the workbook again, after the Saveas code, and close it:
Workbooks.Open (wkBookName)
ActiveWorkbook.Save
ActiveWorkbook.Close

Jerry
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On