S
Spike
I have an excel macro (in an add-in) that is called by the main excel macro
that is deleting various items in an xml file
When it gets to the last line as below it generates the following message
“An unhandled error occurred: Object variable or with block not setâ€
the variable is dimensioned see Dim statement that I have copied here. This
has worked for some time with no problem but suddenly out of the blue
generates this error. I have tried replacing the xml file with a copy, also
tried replacing the add-in with a copy (in case either have been corrupted).
The error description is per “Err.Descriptionâ€
Dim oInstNode As IXMLDOMNode
Set oReplacedNode = oxml.selectSingleNode("/InstrumentList")
Set oCheckNode = oReplacedNode.selectSingleNode("Instrument[OMR='" &
OMRCode & "']")
Any ideas will be gratefully received
that is deleting various items in an xml file
When it gets to the last line as below it generates the following message
“An unhandled error occurred: Object variable or with block not setâ€
the variable is dimensioned see Dim statement that I have copied here. This
has worked for some time with no problem but suddenly out of the blue
generates this error. I have tried replacing the xml file with a copy, also
tried replacing the add-in with a copy (in case either have been corrupted).
The error description is per “Err.Descriptionâ€
Dim oInstNode As IXMLDOMNode
Set oReplacedNode = oxml.selectSingleNode("/InstrumentList")
Set oCheckNode = oReplacedNode.selectSingleNode("Instrument[OMR='" &
OMRCode & "']")
Any ideas will be gratefully received