Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to export to textfile.
// Ok macro
set obj = ActiveDocument.GetSheetObject("CH01")
obj.ExportEx "test1.txt",4
// Error macro
set obj = ActiveDocument.GetSheetObject("CH01")
obj.ExportEx "test2.txt",1
I do not understand the reason for this error.
Please help me.
Hi Kenji-san,
It seems like (possibly a bug) you need to specify the full path for the ExportEx to work with parameter 1 for export type.
For example:
obj.ExportEx "C:\Foldername\test2.txt",1
Hi Kenji-san,
It seems like (possibly a bug) you need to specify the full path for the ExportEx to work with parameter 1 for export type.
For example:
obj.ExportEx "C:\Foldername\test2.txt",1
Hi Johannes-san,
Thank you for your cooperation.
I specified the full path, but it was the same result.
What is the Error you are receiving?
I see "Cannot open file text2.txt for writing!" if I don't have the full path. With the full path it writes the text file properly for me.
Hi Johannes-san,
I have solved thanks to you.
That's good Kenji-san.
Glad I could help