how to use xml in VBA (a problem)

M

Munir

can n e 1 tell me how can i use xml contents to make a particular method call
in VBA. like in xml i read a node <Method>GetFile</Method> this can be n e
method like GetFile ,SendFile etc..my question is how can i decide on run
time which method is to be called...can plz n e 1 reply asap.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TXVuaXI=?=,
can n e 1 tell me how can i use xml contents to make a particular method call
in VBA. like in xml i read a node <Method>GetFile</Method> this can be n e
method like GetFile ,SendFile etc..my question is how can i decide on run
time which method is to be called...can plz n e 1 reply asap.
There's no way in Office VBA to pass a string as a method call. this means you'd
have to know what possible values the node could contain and list them, for
example in a Select Case
Select Case sMethod
Case "GetFile"
Case "SendFile"
Case Else
End Select

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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