Concatenating to produce a line of KML (~XML) code

BDiamond3

New Member
Joined
Aug 6, 2007
Messages
2
I am trying to output a kml file from a costar database pull. CoStar is a real-estate market database and my output file has columns with information such as Building Adress, Lat, Long, etc. I know both the KML string and I have coded the VBA for output and formating, but when I try to concatenate the data into one KML string, VBA wont let me because I need to use tags such as <name> </name>. The process works when I keyed the formula into a cell, but when I try to get VBA to produce the same effect it automatically changes my formula. How do I solve this problem?

Also along the same subject, I need to make my first cell
Range("A1").s = "<?xml version="1.0" encoding="UTF-8"?>" but it wont let me because of the nested quotation marks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
but when I try to concatenate the data into one KML string, VBA wont let me because I need to use tags such as .

Can you provide a sample of what you are trying to concatenate together? Perhaps appropriate cell ranges?
What's the result string supposed to be?
 
Upvote 0

Forum statistics

Threads
1,212,095
Messages
6,105,932
Members
447,984
Latest member
imrics

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top