Skip to main content

AccessTr.neT


Excel Dosyasını Kml Dosyasına Çevirme

Excel Dosyasını Kml Dosyasına Çevirme

#2
Dosyanızda deneme imkanım olmadı
Yapay zekanın önerdiği kod
PHP Kod:
Sub ExportToKML()
    
Dim KML As String
    Dim i 
As Long
    
    KML 
"<?xml version=""1.0"" encoding=""UTF-8""?>" vbCrLf
    KML 
KML "<kml xmlns=""http://www.opengis.net/kml/2.2"">" vbCrLf
    KML 
KML "<Document>" vbCrLf
    
    
For 2 To Cells(Rows.Count1).End(xlUp).Row
        KML 
KML "<Placemark>" vbCrLf
        KML 
KML "  <name>" Cells(i1).Value "</name>" vbCrLf
        KML 
KML "  <Point>" vbCrLf
        KML 
KML "    <coordinates>" Cells(i2).Value "," Cells(i3).Value "</coordinates>" vbCrLf
        KML 
KML "  </Point>" vbCrLf
        KML 
KML "</Placemark>" vbCrLf
    Next i
    
    KML 
KML "</Document>" vbCrLf
    KML 
KML "</kml>"
    
    
Open "C:\Path\To\Your\File.kml" For Output As #1
    
Print #1, KML
    
Close #1
End Sub 
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Excel Dosyasını Kml Dosyasına Çevirme - Yazar: yyhy - 10/08/2023, 17:51
RE: Excel Dosyasını Kml Dosyasına Çevirme - Yazar: berduş - 10/08/2023, 20:49
Task