Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

Re: Excel target in BODS 4.1

$
0
0

Handy vbscript you can try:

 

InputFileName = "C:\Documents and Settings\jblythe\Desktop\sample_file.csv"

 

 

FullName = InputFileName

FileName = Left(InputFileName, InstrRev(InputFileName, ".") )

 

 

Set objExcel = CreateObject("Excel.application")

set objExcelBook = objExcel.Workbooks.Open(FullName)

 

 

objExcel.application.visible = false

objExcel.application.displayalerts = false

 

 

objExcelBook.SaveAs FileName & "xls", 39

 

 

objExcel.Application.Quit

objExcel.Quit  

 

 

Set objExcel = Nothing

set objExcelBook = Nothing

 

list of file saveas formats: Excel 2007 Developer Reference

 

caveat here is that excel can have issues with unicode.


Viewing all articles
Browse latest Browse all 9656

Trending Articles