LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,276
Default 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.

 
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
Open an Excel document in 2007 document using the 2003 office Peter Excel Programming 1 October 23rd 06 06:41 PM
convert excel document to word document (not a picture) frendabrenda1 Excel Discussion (Misc queries) 2 October 6th 06 03:55 PM
How to create a formatted 'readable' document based on Excel document? [email protected] Excel Discussion (Misc queries) 0 June 23rd 06 06:09 PM
How to change a excel document into a word document? wannaknow Excel Discussion (Misc queries) 1 July 27th 05 09:37 PM
Can you transform an excel document into a word document? Tammy Excel Discussion (Misc queries) 1 May 19th 05 03:23 PM


All times are GMT +1. The time now is 12:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"