•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,952 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,836 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 3533 | Replies: 3
![]() |
•
•
•
•
Originally Posted by hopkins1878
Hi there,
I am not the best in Access, I will admit. But need a function to open up a MS Outlook template (.oft file) within Access. Anyone help with quick steps on how to do this, It would be greatly apprciated.
To answer EXACTLY what you asked - here it is
'---------------------------------------------------
Private Sub Command1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItemFromTemplate("C:\Program Files\Microsoft Office\Templates\APPT2.oft")
myItem.Display
End Sub
'--------------------------------------------------
1: Create a Command1 button on ACCESS Form
2: Place Code in EVENT HANDLE
This Code does this
a: Create an OUTLOOK Object
b: Create an Object Item from Template (your existing template in the directory you saved it to.)
c: Displays your item
APPT2 is the name of the custom template, change it to what yours is named
--------Thread End ----------
aka Kegtapper
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- Outlook Express Very Slow to Start Up (Web Browsers)
- Opening Outlook Template from Access (MS Access and FileMaker Pro)
- Opening Outlook Template in Access (Database Design)
- error when opening outlook express, address book and importing messages to outlook (Windows NT / 2000 / XP / 2003)
- microsoft outlook not opening (Windows Software)
- public folder items not opening in outlook 2000 (Windows NT / 2000 / XP / 2003)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: is it possible to change the size of jpg file through programming in vb
- Next Thread: List of functions


Linear Mode