Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to save a xls file as csv.
When I save it manualy by using saveas, and choosing csv format in the drop down box, everything is OK. But when I try to program it in VB, all the data is put in column A. Can anybody help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
did you try macro recorder? Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Yes. When i juse the recorder, all the data is arrangende in column A Regards Fib "Ivan Raiminius" skrev: Hi, did you try macro recorder? Regards, Ivan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
so, you are using: workbooks("some workbook").SaveAs Filename:= _ "some filename(including path).csv" _ , FileFormat:=xlCSV, CreateBackup:=False in your code? Regards, Ivan |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
My code is: Windows("record.xls").Activate ActiveWorkbook.SaveAs "F:\record.csv", FileFormat:=xlcsv I have tryed this one as well, but havent been able to create the same format, like the format when I am saving it manualy. Windows("record.xls").Activate Const xlcsv = 1 '(I have tryed every number from 1 to 100. ) ActiveWorkbook.SaveAs "F:\record.csv", FileFormat:=xlcsv Best regards Fib "Ivan Raiminius" skrev: Hi, so, you are using: workbooks("some workbook").SaveAs Filename:= _ "some filename(including path).csv" _ , FileFormat:=xlCSV, CreateBackup:=False in your code? Regards, Ivan |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
xlcsv = 6 your code should work. What is the exact problem? What do you see when you open your .csv file in Notepad? and in Excel? Regards, Ivan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met | Excel Discussion (Misc queries) | |||
saveas CSV file | Excel Discussion (Misc queries) | |||
File SaveAs | Excel Programming | |||
Saveas with name of another file | Excel Programming | |||
SaveAs another file name, then keep working | Excel Programming |