Jonathan
Thu Jul 24 05:27:03 PDT 2008
"Ulf Nilsson" <UlfNilsson@discussions.microsoft.com> wrote in message
news:BA1ED807-4000-4B88-95F5-4BD1EE2EEE92@microsoft.com...
> Hi,
> I still use ini-files to get/store information - for different reasons -
> and
> thinking of replacing them with xml-files. Is this possible? if so, how do
> I
> navigate in a xml-file using vba?
>
> // Ulf
>
>
In your VBA project, go to Tools, References, and set a reference to a
version of "Microsoft XML". there are several versions of the XML library
available, you will have to make a decision on which one to use. I've tended
to use the oldest available on my system (2.6) on the assumption that it is
most likely to be installed in the widest number of systems.
This makes available an object model for accessing XML files. An article
describing the object model and how to use it is available here
http://msdn.microsoft.com/en-us/library/aa468547.aspx
Depending on which version of the XML object library you use, you might need
to find a different version of that article.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup