|
-
Apr 28th, 2003, 09:01 AM
#1
Thread Starter
Member
Question about Microsoft Outlook 9.0 Object Library
I have a question about the Microsoft Outlook 9.0 Object Library. My boss just came up to me and asked me to change my code. Here is my code :
VB Code:
'**************** Sets up and Sends Email to AOPS ******************
'This will send an email to everyone in the department with the
'appropriate information.
'Create Outlook object variable
Dim objOutlook As Object
'Assign Outlook.Application to object variable
Set objOutlook = CreateObject("Outlook.Application")
'Set objOutlook = GetObject(, "Outlook.Application")
With objOutlook.CreateItem(olMailItem)
'To: Field of the Email
'Subject: Field of the Email
.Subject = strIssue & ", " & strAlert & ", " & strServer
'Body of the Email
.Body = strDateTimeStamp & ", " & "Response number: " & strResponse _
& Chr$(13) & Chr$(13) & "Comments: " & strComments
'Copy message to Outlook Outbox with Send
.Send
End With
'Quits Outlook
'objOutlook.Quit
'Release object variable
Set objOutlook = Nothing
'********************************************************************
My question is, is there a way for me to change this so that instead of it automatically sending the email, it brings up the email in outlook, so that the person can make changes to it before it's sent? The only thing that really needs to be changed is in case they need to add another email address. But how can i do this? Thanks.
Eric Garrison
Automated Operations
Union Planters Bank
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
-
Apr 28th, 2003, 09:06 AM
#2
Frenzied Member
use .DISPLAY instead of .SEND
-
Apr 28th, 2003, 09:06 AM
#3
PowerPoster
Well
Change
.Send
to
.Display
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Apr 28th, 2003, 10:39 AM
#4
Thread Starter
Member
Awesome, it worked perfectly. Thanks guys
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
-
Apr 28th, 2003, 02:50 PM
#5
Hyperactive Member
Can I use the MS Outlook object without installing MS Outlook? If so what dll do I need?
-
Apr 28th, 2003, 03:02 PM
#6
PowerPoster
Originally posted by Ephesians
Can I use the MS Outlook object without installing MS Outlook? If so what dll do I need?
MS Outlook has to be installed
-
Apr 28th, 2003, 04:03 PM
#7
You can use the p & d wizard to install the reference dlls and
such, but unfortunately if the workstation does not have Outlook
installed then it is violating the license agreement. So, it can be
done, but not legally. The user would not be able to bring up a
working stand alone version, but he would not be licensed.
Last edited by RobDog888; Apr 28th, 2003 at 04:09 PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|