![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have an Outlook form that was created in Outlook 2003 and everything worked fine. There is a custom button on the form to launch a file attachment dialog. We use the separate button because there is code that goes along with the attach action that wipes out the body of the email prior to attaching the document and then inserts some default messaging after the attachment.
Anyway, we're switching to Outlook '07 and the code to launch the attach dialog is no longer working (I assume because the original code used the Outlook menu as a reference, which has changed.) Any idea on what the correct code would be for Outlook '07? Sub ShowAttachmentDialog() Dim objInsp Dim colCB Dim objCBB On Error Resume Next Set objInsp = Item.GetInspector Set colCB = objInsp.CommandBars Set objCBB = colCB.FindControl(, 1079) If Not objCBB Is Nothing Then objCBB.Execute End If Set objCBB = Nothing Set colCB = Nothing Set objInsp = Nothing End Sub |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to attach a file with MS Outlook, from a program? | niladri | Outlook - Using Forms | 3 | September 14th 09 03:24 PM |
Attach digital Signature with code | andyoye | Outlook and VBA | 3 | July 31st 08 05:21 PM |
Attach VB Code to Form? | G | Outlook - Using Forms | 5 | August 20th 07 09:45 PM |
Cannot Attach File with Outlook 2007 | Rob Schneider | Outlook - General Queries | 1 | April 7th 07 03:14 PM |
Code to attach more than 1 document | Jas | Outlook and VBA | 1 | March 22nd 06 07:41 AM |