Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compatibility of workbook issue 1

Status
Not open for further replies.

BH

Programmer
Oct 15, 2002
76
0
0
GB
Hi
From a command button in an Excel spreadsheet I am filtering data and copying into a new workbook a number of times. I am working with Excel 2010 and saving the new workbooks in 2003-2007. Everything works really well other that I constantly get the the Compatibilty checker message box come up. Is there a way I can code to disable the checker for the newly created workbooks?

THE MESSAGE APPEARS AT THIS POINT:

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\bhbha\Desktop\Urgent_Care\C84125 Urgent_Care_Reular_Users_June-August 2011.xls" _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

Your help is much appreciated

thank you

BH

 


Hi,

First, you are saving your workbook as an Excel 97-2003 .xls workbook. This does NOT include 2007. It is "compatability mode".

Second, VBA questions are best handled in forum707.

In your case, try using Application.DsiplayAlerts = FALSE
Code:
Application.DsiplayAlerts = FALSE
ActiveWorkbook.SaveAs Filename:= _
        "C:\Documents and Settings\bhbha\Desktop\Urgent_Care\C84125 Urgent_Care_Reular_Users_June-August 2011.xls" _
        , FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
        ReadOnlyRecommended:=False, CreateBackup:=False
Application.DsiplayAlerts = TRUE


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Thanks SkipVought

Brill, works a treat.....after I realised Dsiplay was slightly misspelt lol!

Other points took on board!

 


Sorry. I am dyslexic. I try to be careful, but often fail!

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
No problem....just very thankful for you assistance.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top