![]() |
XMLSS document to Excel document in .xls format
Hi all,
I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
XMLSS document to Excel document in .xls format
Hi,
sorry if you get this message twice but I got a message error when sending use a button with the macro as follow Sub BM_XLS_Copy() ' ' BM_XLS_Copy Macro ' ' ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:= _ "C:Yourfilename.xls", FileFormat:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub "Dominik" wrote: Hi all, I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
XMLSS document to Excel document in .xls format
Hi Eduardo,
Thanks for your useful response. But I also need to know if I could execute this macro to my XMLSS file from the command line... Thanks again, Dominik. "Eduardo" wrote: Hi, sorry if you get this message twice but I got a message error when sending use a button with the macro as follow Sub BM_XLS_Copy() ' ' BM_XLS_Copy Macro ' ' ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:= _ "C:Yourfilename.xls", FileFormat:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub "Dominik" wrote: Hi all, I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
XMLSS document to Excel document in .xls format
Hi Dominik,
You can go to macro choose the macro and click run, if you mean to add to the ribbon, You cannot do that "Dominik" wrote: Hi Eduardo, Thanks for your useful response. But I also need to know if I could execute this macro to my XMLSS file from the command line... Thanks again, Dominik. "Eduardo" wrote: Hi, sorry if you get this message twice but I got a message error when sending use a button with the macro as follow Sub BM_XLS_Copy() ' ' BM_XLS_Copy Macro ' ' ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:= _ "C:Yourfilename.xls", FileFormat:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub "Dominik" wrote: Hi all, I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
XMLSS document to Excel document in .xls format
Hi again,
I mean to execute excel from the windows command line, open my XMLSS file and run the marco automatically. Thaks for all, Dominik. "Eduardo" wrote: Hi Dominik, You can go to macro choose the macro and click run, if you mean to add to the ribbon, You cannot do that "Dominik" wrote: Hi Eduardo, Thanks for your useful response. But I also need to know if I could execute this macro to my XMLSS file from the command line... Thanks again, Dominik. "Eduardo" wrote: Hi, sorry if you get this message twice but I got a message error when sending use a button with the macro as follow Sub BM_XLS_Copy() ' ' BM_XLS_Copy Macro ' ' ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:= _ "C:Yourfilename.xls", FileFormat:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub "Dominik" wrote: Hi all, I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
XMLSS document to Excel document in .xls format
Hi Dominik, as follow are the instructions
You need to palce your code in the Workbook _Open event. To do so: * Right-click on a worksheet tab and select View Code * When taken to the VB window, Locate object VBAProject(YourWorkbookName) in the project explorer window on the left, and expand it if not already expanded; double-click on This Workbook * Locate the two drop-down boxes on top of the main window, and change the one on the left from default (General) to Workbook; notice the two lines of code that are automatically entered in the main window: Private Sub Workbook_Open() End Sub Whatever code you put in between will be executed whenever you open the workbook. You could either paste the code here, or leave it in the general module where it currently is and just call it from here, like: My_Macro_Name "Dominik" wrote: Hi again, I mean to execute excel from the windows command line, open my XMLSS file and run the marco automatically. Thaks for all, Dominik. "Eduardo" wrote: Hi Dominik, You can go to macro choose the macro and click run, if you mean to add to the ribbon, You cannot do that "Dominik" wrote: Hi Eduardo, Thanks for your useful response. But I also need to know if I could execute this macro to my XMLSS file from the command line... Thanks again, Dominik. "Eduardo" wrote: Hi, sorry if you get this message twice but I got a message error when sending use a button with the macro as follow Sub BM_XLS_Copy() ' ' BM_XLS_Copy Macro ' ' ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:= _ "C:Yourfilename.xls", FileFormat:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub "Dominik" wrote: Hi all, I need to save an Excel Xml document (XMLSS) as an Excel document in .xsl format. Does anyone know some automatic way to do this? Thanks in advance, Dominik. |
All times are GMT +1. The time now is 12:33 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com