R
Rick B
I have a basic macro in Outlook which opens a specific form I developed. The
code is:
Sub OpenWeeklyReport()
Dim myOlApp As Application
Dim myItem As Object
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItemFromTemplate _
("C:\Templates\Weekly Report.oft")
myItem.Display
End Sub
Is there a way to dynamically set the myItem file path to the users default
template directory so the code does not have to be modified for each user
that wants to use this macro?
Thank you in advance,
-rick
code is:
Sub OpenWeeklyReport()
Dim myOlApp As Application
Dim myItem As Object
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItemFromTemplate _
("C:\Templates\Weekly Report.oft")
myItem.Display
End Sub
Is there a way to dynamically set the myItem file path to the users default
template directory so the code does not have to be modified for each user
that wants to use this macro?
Thank you in advance,
-rick