Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I created a macro in Word to invoke Excel file and save
the excel file as CSV format. The Excel file can be opened with no problem, it just won't saved in CSV format. I created the same macro in Excel, it works. I don't know why it doesn't work in Word. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would guess you are using late binding and using code like
fileformat:=xlCSV with late binding, xlCSV is not defined, so it equals 0. You need to use the hardcoded value. ? xlcsv 6 so fileformat:=6 -- Regards, Tom Ogilvy "Nancy" wrote in message ... I created a macro in Word to invoke Excel file and save the excel file as CSV format. The Excel file can be opened with no problem, it just won't saved in CSV format. I created the same macro in Excel, it works. I don't know why it doesn't work in Word. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Using FileFormat:=xlText | Excel Discussion (Misc queries) | |||
Working with the range object | Excel Discussion (Misc queries) | |||
Working with the range object | Excel Discussion (Misc queries) | |||
SaveAs Filename and FileFormat in Vs2007 | Excel Discussion (Misc queries) | |||
FileFormat Macro Problem | Excel Programming |