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
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,535
Messages
5,596,738
Members
414,094
Latest member
dingo_baby

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
Top