Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

save as .xls (97-03 format) with code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JNW - 29 Feb 2008 22:16 GMT
I've got some code that closes a code generated workbook and saves during the
close.  

Workbooks(Workbooks.Count).Close _
   savechanges:=True, _
   Filename:=FName & "Myfile.xls"

FName is the folder location.

When running the code in xl2007 the code generated/closed/saved files can
only be opened in xl2007.

When running the code in xl2003 the files can be opened in both 07 and 03,
but when opening in 2007 there is a warning message first.

Has anyone seen this? and more importantly, does anyone know how to remedy it?

Thanks,
Signature

JNW

JLGWhiz - 01 Mar 2008 01:22 GMT
remember that xl07 has the 4 digit file extension and xl03 has only 3 digits.
I believe what you are seeing is the built in warning system to let you know
that you might be doing something you don't want to do.

> I've got some code that closes a code generated workbook and saves during the
> close.  
[quoted text clipped - 14 lines]
>
> Thanks,
Ron de Bruin - 01 Mar 2008 10:08 GMT
See
http://www.rondebruin.nl/saveas.htm

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> I've got some code that closes a code generated workbook and saves during the
> close.  
[quoted text clipped - 14 lines]
>
> Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.