Hello,
Overview: I'm working to select a contact from Outlook that is marked as a "Customer" for use in an Excel process to build an estimate or one marked as "Vendor" to build a purchase order. (We have all of the contact information in Outlook so we want to use it, not have to reenter/maintain in Excel too.)
Below is the test code that I've managed to put together so far (it is not clean and neat yet).
Step 1: Using Excel to create/maintain a "Contact Type" list which is then exported to the HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Estimator\Settings registry.
Step 2: Using Outlook custom Contact form (p.2) to select the "Contact Type" (Vendor, Contractor, Customer, etc)
Step 3: Using Excel to build an estimate, but the first step involves selecting a "Customer" or "Vendor" from Outlook search form to pull back the email address. Plan to use that email address to then fetch the rest of the Contact's information to populate Excel (see test code to fill worksheet with contact info below).
Issues I need help with currently:
1. The value is not being saved once chosen? Or it may be that it is getting deleted by my code (more likely), I just am not finding the right way to keep it yet. If I select "Customer" for a contact, close the contact window and reopen that contact, it is back to blank.
2. When I try to save the customized contact form via File, Save As the window does not open to allow me to type in the file name. http://msdn.microsoft.com/en-us/library/office/ff865673(v=office.15).aspx
Right now I only see to be able to get the custom contact form working for one contact. What do I need to do to get the custom form working for all contacts?
OR... am I nuts and need to do this some other way??? What would you suggest???
Thank you,
Brian
Overview: I'm working to select a contact from Outlook that is marked as a "Customer" for use in an Excel process to build an estimate or one marked as "Vendor" to build a purchase order. (We have all of the contact information in Outlook so we want to use it, not have to reenter/maintain in Excel too.)
Below is the test code that I've managed to put together so far (it is not clean and neat yet).
Step 1: Using Excel to create/maintain a "Contact Type" list which is then exported to the HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Estimator\Settings registry.
Step 2: Using Outlook custom Contact form (p.2) to select the "Contact Type" (Vendor, Contractor, Customer, etc)
Step 3: Using Excel to build an estimate, but the first step involves selecting a "Customer" or "Vendor" from Outlook search form to pull back the email address. Plan to use that email address to then fetch the rest of the Contact's information to populate Excel (see test code to fill worksheet with contact info below).
Issues I need help with currently:
1. The value is not being saved once chosen? Or it may be that it is getting deleted by my code (more likely), I just am not finding the right way to keep it yet. If I select "Customer" for a contact, close the contact window and reopen that contact, it is back to blank.
2. When I try to save the customized contact form via File, Save As the window does not open to allow me to type in the file name. http://msdn.microsoft.com/en-us/library/office/ff865673(v=office.15).aspx
Right now I only see to be able to get the custom contact form working for one contact. What do I need to do to get the custom form working for all contacts?
OR... am I nuts and need to do this some other way??? What would you suggest???
Thank you,
Brian