Ive been trying to set up code to automatically import an XML document but the simple examples just aren't working.
I've used the examples in
and
but the format isnt working at all.
I use
and I'm unsure where I would plug in
I would like to overwrite the previous import each time it executes. I would like it to trigger when the project opens. But I'm not sure how.
I've used the examples in
and
but the format isnt working at all.
I use
Code:
Public Sub NutLog()
Dim sXMLPath As String
Const cOverWrite As Integer = 1
sXMLPath = "C:\Documents and Settings\Me\My Documents\ImportFile.xml"
ImportXML sXMLPath, acStructureAndData, cOverWrite
End Sub
Code:
Application.ImportXML _
DataSource:="C:\Documents and Settings\Me\My Documents\ImportFile.xml", _
ImportOptions:=acStructureAndData
I would like to overwrite the previous import each time it executes. I would like it to trigger when the project opens. But I'm not sure how.