Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dave,
That solution is fantastic and does exactly what I had hoped to do without any third party software. Thank you very much! On Monday, July 21, 2003 7:17:26 PM UTC-5, Dave Peterson wrote: It looks like you want to use a .vbs (scripting) and Dan wants to use a VBA macro. If you really want to use a VBS script, then maybe something like this will get you started: Dim myXL Set myXL = CreateObject("excel.application") myXL.workbooks.Open "c:\my documents\excel\book1.csv" myxl.displayalerts = false myXL.activeworkbook.SaveAs "c:\my documents\excel\book1.xls", -4143 myxl.displayalerts = true myXL.activeworkbook.Close False Set myXL = Nothing copy this to notepad and save it as something.VBS. (and fix the filenames/location). But this actually opens excel (hidden, but open), opens the .csv, saves it as .xls and then closes excel. kris wrote: Hi, I need to convert .CSV file to XLS with out opening excel 2000. I want to do it thru command prompt or vb script. Can some one help in this regard? any script/ command for this? Thanks -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
from date format convert to text format is wrong | Excel Discussion (Misc queries) | |||
Macro to convert mmddyyyy format into mm/dd/yyyy format | Excel Programming | |||
Convert numbers from text format to number format | Excel Discussion (Misc queries) | |||
How can I convert a date format to an ISO week format (in EXCEL)? | Excel Discussion (Misc queries) | |||
How do i convert excel to csv in command line? ( not save as) | Excel Discussion (Misc queries) |