Load function

M

moon

Hello everyone,

I am trying to run this function on word 2004 on Mac. It works
perfectly fine on pc but creates errors when running it on mac. Can
someone let me know how to fix this? thanks

Public Sub LoadXML(ByRef xmlObject As Object, ByVal xmlPath As String)
On Error GoTo Error_Handler
xmlObject.async = False
xmlObject.preserveWhiteSpace = True
xmlObject.Load (xmlPath)
xmlObject.Load (xmlPath)

Error_Handler:
If Err.Number <> 0 Then
Err.Raise Err.Number, Description:=Err.Description
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top