How to reference an outlook template using a Excel Add-in

jordanf563

New Member
Joined
Apr 16, 2013
Messages
1
Hi All,

I am very much still a rookie here and in developing in general. I am running into a bit of an issue with a Add-in I am designing.

Basically, I am trying to write an add-in that does 2 things,

1. Allows a user to create a certain report based on a choice of possible reports via a drop down - DONE
2. Allows a user to automatically generate an email based on a selection of possible emails via another drop down. - ISSUE

I am designing the second part of the Add-in to open Outlook, and generate an email based on certain templates I have saved. Well the problem is that I will installing this add-in serveral users computers and the location for the templates will obviously be different on everyones computers, (e.g. C:\Users\*USERNAME*\AppData\...etc).

When I made this as a macro I was able to just set a myPath variable to save the macros location and was able to get the users name from that path. But I have no idea if that is even possible to do with a Add-in seeing as it isnt running in a workbook.

Any ideas on how to figure out where the templates are being stored? I cannot use the get username because my company's requires everyone to save to a network drive that is different than the username.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top