I've been slowly building my understanding of using Excel to access Outlook by searching the internet and trying tons of examples to put together what I'm after.
HOWEVER...
I ran across the following at CreateItem Method
I'm using Excel and Outlook 2013 via default install.
The only Outlook code I can get to work from Excel though is the VBScript type.
For example, this works:
But this does not:
I've not been able to find a clear, "flip this switch on to use Outlook" as in the VBA Outlook.
What in the world am I missing here???
Also, I need to distribute this workbook to other users who are not technical at all. Does this mean I should stick only to using Outlook via VBScript?
I am specifically after the following:
1. Open a filtered (via the "User1" field equal "Customer") contacts window without the To, CC, BCC fields (got that working)
2. Using that selected contact above (via email address?) to pull in the full contact information to use in Excel (not even close yet)
It is clear that the VBScript version is not a functional as the VBA version of using Outlook in Excel.
And it appears to me that I'll not be able to do what I need via the VBScript.
Would someone please point me to a clear explanation of the differences between the two methods of accessing Outlook from Excel.
Please tell me how to switch on the VBA Outlook or point me to something that will, because I'm simply not finding it.
Lastly experts, which method is better for what I need to do? VBA Outlook or am I really missing something?
Thank you!
Brian
HOWEVER...
I ran across the following at CreateItem Method
andThe following Microsoft Visual Basic/Visual Basic for Applications (VBA) example creates a new MailItem object and sets the BodyFormat property to olFormatHTML. The Body text of the e-mail item will now appear in HTML format."
If you use Microsoft Visual Basic Scripting Edition (VBScript) in a Microsoft Outlook form, you do not create the Application object, and you cannot use named constants. This example shows how to create a contact item in the default Contacts folder using VBScript code.
I'm using Excel and Outlook 2013 via default install.
The only Outlook code I can get to work from Excel though is the VBScript type.
For example, this works:
Code:
Dim myOutlook As Object
Set myOutlook = CreateObject("Outlook.Application")
Code:
Dim olApp As Outlook.Application
I've not been able to find a clear, "flip this switch on to use Outlook" as in the VBA Outlook.
What in the world am I missing here???
Also, I need to distribute this workbook to other users who are not technical at all. Does this mean I should stick only to using Outlook via VBScript?
I am specifically after the following:
1. Open a filtered (via the "User1" field equal "Customer") contacts window without the To, CC, BCC fields (got that working)
2. Using that selected contact above (via email address?) to pull in the full contact information to use in Excel (not even close yet)
It is clear that the VBScript version is not a functional as the VBA version of using Outlook in Excel.
And it appears to me that I'll not be able to do what I need via the VBScript.
Would someone please point me to a clear explanation of the differences between the two methods of accessing Outlook from Excel.
Please tell me how to switch on the VBA Outlook or point me to something that will, because I'm simply not finding it.
Lastly experts, which method is better for what I need to do? VBA Outlook or am I really missing something?
Thank you!
Brian