PP3321
Active Member
Is there any alternative way for following command to edit xml,
which is stored in a certain location?
Open FilePath For Output As #1
I have the code below, but sometimes I get 'path not found' error.
Usually it works without any problem.
I confirm that path is correct...
which is stored in a certain location?
Open FilePath For Output As #1
I have the code below, but sometimes I get 'path not found' error.
Usually it works without any problem.
I confirm that path is correct...
Code:
Dim XMLFileName As String
XMLFileName = "\\sharepoint.site.com\myfile.xml"
Open XMLFileName For Output As #1
Print #1, "<?xml version=" & """1.0""" & " encoding=" & """UTF-8""" & " standalone=" & """yes""" & "?>"
Print #1, "<data>"
Print #1, "<variable>"
Print #1, "<row>"
Print #1, "<column>" & Range("A1").Value & "</column>"
Print #1, "</row>"
Print #1, "</variable>"
Print #1, "</data>"