Link to Excel File on Outlook Form

F

freeman642

I need to have a link on an Outlook VBA form that links and opens an
excel file, does anyone know of a way to do this? Have seen links to
internet explorer but not opening a file on a shared network drive.

Thanks John
 
S

Sue Mosher [MVP-Outlook]

The file:// URL syntax should work with any file. Or, use Excel automation methods.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54
 
F

freeman642

On excel automation methods can I reference all versions of excel
library excel.exe and the machine will find the right one or do I ahve
to get what version and then select the right reference.

Thanks John
 
S

Sue Mosher [MVP-Outlook]

Excel automation is not version specific. You can use CreateObject("Excel.Application").

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54
 
S

Sue Mosher [MVP-Outlook]

No, not VBA form controls, but the IE automation tecnique that the o.p. cited should also work for file:// URLs not just http:// URLs.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54
 

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