Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as XML File msg !! (Macros)


I have a xls file with a macro, when i run the macro and i open another
xls file and i need to save as xls file and xml file.

i try to save as xml file, but always a msg box appear to tell me that
the xml file was save w/o the vb project (macros) i need to click yes.

Theres an auto way to do that using macros of course.

ActiveWorkbook.SaveAs Filename:=LogDia, FileFormat:=xlXMLSpreadsheet,
ReadOnlyRecommended:=True

any idea ??

Thanks
Ricardo


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=537515

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Save as XML File msg !! (Macros)

Try:

Application.Displayalerts = False
'save
Application.Displayalerts = True

Tim


"rvillanueva" wrote in message
...

I have a xls file with a macro, when i run the macro and i open another
xls file and i need to save as xls file and xml file.

i try to save as xml file, but always a msg box appear to tell me that
the xml file was save w/o the vb project (macros) i need to click yes.

Theres an auto way to do that using macros of course.

ActiveWorkbook.SaveAs Filename:=LogDia, FileFormat:=xlXMLSpreadsheet,
ReadOnlyRecommended:=True

any idea ??

Thanks
Ricardo


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=537515



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save as XML File msg !! (Macros)


Tim , i test and works fine. Excellent

Thanks you very much !!!


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=537515

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
Macros Containing a File Save As & Tab Deletions Mike The Newb Excel Discussion (Misc queries) 4 August 16th 06 12:43 PM
save excel file from a table delimited file (.txt) using macros sedamfo New Users to Excel 1 February 15th 05 04:19 AM
how to delete all macros - save file with cell-name Tom Excel Programming 8 June 23rd 04 11:30 AM
Macros in Excel - Save as and rename file Tom Ogilvy Excel Programming 0 August 13th 03 12:13 PM
Macros in Excel - Save as and rename file Bob Phillips[_5_] Excel Programming 0 August 13th 03 09:28 AM


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