WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with Excel
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Named Parameters with OLE and Excel

Keywords: 	 Named Parameters

Question:

I need help with positional/named params in Winbatch OLE. Winbatch 99d...

My script works until the SAVEAS command...

	ExcelWS = ObjectOpen("Excel.Application")
	EWS = ExcelWS.Application
	EWS.visible = @true
	EWB = EWS.Workbooks
	EWB.Open ("C:\Data\Excel\Tech Serv Reporting.xls")

	EWS.Run("get_daily_category")
	EWS.Run("'Tech Serv Reporting.xls'!format_wks")

	EW = EWS.Workbook
	EW.SaveAs("c:\data\excel\junk.xls")
Here's the VB example...
	NewBook.SaveAs Filename:=fName 

Answer:

	EW.SaveAs(:: Filename="c:\data\excel\junk.xls")
Note the ::
Article ID:   W14282
Filename:   OLE with Excel and Named Parameters.txt
File Created: 1999:10:26:11:23:00
Last Updated: 1999:10:26:11:23:00