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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel API for save as various format

Status
Not open for further replies.

vbakan

MIS
Dec 6, 2006
24
GB
Could any one know the API Function used in Excel for "Save As" menu option. I want to convert Excel (.xls) in to .csv and .xml.

Please help me if you know a way in VBA. I am using Excel 2002.
 
ThisWorkbook.SaveAs
ThisWorkbook.SaveAsXMLData

Both of these take perimeters which you will see by pressing the F1 help

Chance,

F, G + HH
 
Thanks for your prompt reply. I don't get the ThisWorkbook.SaveAsXMLData


Any iead why Do I need any reference for that
 
ah sorry missed the 2002 bit ,

have alook at faq707-6257



Chance,

F, G + HH
 
Thanks again, I want the same method used in Excel Menue, as it has got xml scheme and style sheets as well incorporated. Would you know any think about it ?
 
have you recorded a macro and looked at the source ?

I only have 2003 on my machine at the moment so unable to check



Chance,

F, G + HH
 
I don't have the XML Menu in Excel 2002, SO I am unable to do the macro recording, Could you tell me how can I do that please.
 
Tools/Macro/Record new macro

go through the menus you want to then click stop, hit F11 and you can see teh code

Chance,

F, G + HH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top