M
meyvn77
I am exporting data from a GIS application to Excel.
I am currently just opening a tab delimited file in excel.
The file that opens is somename.txt but it is in excel. To accually get
an 'excel' file the user must do a save as .xls.
I would like to save the somename.txt as somename.xls to take that step
out or the operation. I would also like the excel file so I can
manipulate it and create some new worksheets and compile some simple
statistics.
Current Code:
Open filepath_Export & "Selection_Set.txt" For Output As #1
Print #1, strHeaderRow & vbCr & sData
Close #1
'Open the new text file in Excel
Shell GetAssociatedExecutable(".xls") & " " & _
Chr(34) & filepath_Export & "Selection_Set.txt" &
Chr (34), vbNormalFocus
Some code here to save the file or active window file or
something
Thanks,
Charles
I am currently just opening a tab delimited file in excel.
The file that opens is somename.txt but it is in excel. To accually get
an 'excel' file the user must do a save as .xls.
I would like to save the somename.txt as somename.xls to take that step
out or the operation. I would also like the excel file so I can
manipulate it and create some new worksheets and compile some simple
statistics.
Current Code:
Open filepath_Export & "Selection_Set.txt" For Output As #1
Print #1, strHeaderRow & vbCr & sData
Close #1
'Open the new text file in Excel
Shell GetAssociatedExecutable(".xls") & " " & _
Chr(34) & filepath_Export & "Selection_Set.txt" &
Chr (34), vbNormalFocus
Some code here to save the file or active window file or
something
Thanks,
Charles