#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Saving as XML

Hi, Building a vba module that exports timecard data from XL to a
payroll system using an XML import format. Everything is OK except
when the created file is saved as XML or TXT or CSV or whatever; i've
tried a lot of them.

The XML has been tested as OK and the export worksheet shows (in
column A):
<?xml version="1.0" ?
<TimeCards Version="2.3"
<TimeCard
<TimeCardNo1</TimeCardNo
<EmployeeNameAA</EmployeeName
....
</TimeCard
</TimeCards

But, when I save the sheet, the resulting file has:
"<?xml version=""1.0"" ?"
"<TimeCards Version=""2.3"""
<TimeCard
<TimeCardNo1</TimeCardNo
<EmployeeNameAA</EmployeeName
....
</TimeCard
</TimeCards

The additional quotes on the top two lines causing the import file to
be "not recognized" as being in an XML format. I have tried multiple
XL formats to save the file as but only manually removing the
additional quotes allows the file to be imported. Any ideas will
help.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 10:34 AM
VBA not saving! dksaluki Excel Discussion (Misc queries) 1 May 8th 08 12:13 PM
Saving xls to pdf Bob Excel Discussion (Misc queries) 5 January 8th 07 09:11 PM
saving pdf ericaf80 Excel Discussion (Misc queries) 1 December 5th 06 11:07 PM
Saving Gazza at emaths Excel Discussion (Misc queries) 1 May 4th 06 12:33 AM


All times are GMT +1. The time now is 09:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"