Link to home
Start Free TrialLog in
Avatar of KKress
KKressFlag for Germany

asked on

VBA Outlook 2013: How to retrieve a Vcard from a webpage and assign to a contactitem object

Situation: I have a Webpages containing Links to a vcards. If I click on such a link, I can either retrieve this vcard in form of a contactitem or can download the vcf file.
Now I want to handle this from a macro. The vba macro is supposed to Analyse the Webpage, find the URL referring to the vcard, and create a contactitem with These vacrd Information.
The problem I'm having is, that navigating to the URL automatically Downloads the vcf file. Idon't see how I can retrieve the Information and make it accessible in the macro for further Analysis.
So simply spoken, the idea is:
   Analyse Webpage
   find URL to vcard
   retrieve vcard (as contactitem?)
   Have Information from vcard accessible for further Analysis
Can someone Point me to how I can retrieve Information and make it accessible from within the macro?
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 500 points for BlueDevilFan's comment #a40725368

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Avatar of KKress

ASKER

@BlueDevilFan: Thanks for the code and your Patience. I've been experimenting quite a while and finally decided to use the following construct:
1. Navigate to the URL (IE.navigate) and Exit the running macro (Following further on the Explorer properties didn't get me any further, as the Explorer looses any Connection to the URL called)
2. Chose "open" from the Dialog "open,save,cancel"
3. Once the vcard is open, it is displayed in a new inspector. I capture the Event "newinspector" and process from there the downloaded Contact Object. The Beauty of this is, that I can use the full object properties of the contact and I can save the contact, too.

But thanks very much anyway for investigating!