One more area for you to see and let me know if you have a thought. You can can see earlier in this thread, the userform and related module codes, an there what happen when I run thru the breakpoint:
When I open the contact from the folder, and there is the breakpoint as I created it, the first line shows up as yellow, and then when I keep clicking on F8, the following lines show up yellow in the following order of lines going down:
If TypeName(ActiveExplorer.Selection.Item(1)) = "ContactItem" Then
Set oContact = GetCurrentItem()
Function GetCurrentItem() As Object
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = objApp.ActiveExplorer.Selection.Item(1)
End Select
Set objApp = Nothing
End Function
And then goes up to the following line in yellow:
UserForm10.Show
And then it goes to the Userform10, and yellows the lines going down:
Public Sub UserForm_Initialize()
With ComboBox16
.AddItem "Marketing Intro E-mail to GHP Contacts"
.AddItem "Follow-Up From Meeting at GHP Event"
End With
End Sub
And then it opens up the Combobox with the related CommandButton
And when I open the contact from the shortcut, from the module line, it does not got to each line as I mentioned above, it yellows the first line and then goes in the following order:
If TypeName(ActiveExplorer.Selection.Item(1)) = "ContactItem" Then
End If
Set oMail = Nothing
End Sub
And then it opens up the Userform10 in the Visual Basic Editor and not the Combobox and related CommandButton.
So is there a way to fix this so that when you open the contact from the shortcut, it goes thru the same process of opening up the Combobox and related CommandButton?