S
Sierk
Hi,
I have gotten my customization for Outlook to work (VB) for the most part,
and I am trying to clean things up. I am challenged by the declaration of
object variables. I get an error on the following line of code (Option
Explicit is set)
Set myItem = ActiveExplorer.Selection.Item(1)
With the following declaration
Dim myItem As Outlook.Explorer
If I declare myItem as Variant it works fine. I just would like to know
what the proper declaration for these types of object variables is. I am
having similar problems with Word Document Objects. Also if there is a good
white paper describing declaration of variables in this environment I'd much
like to know its location.
Thanks
I have gotten my customization for Outlook to work (VB) for the most part,
and I am trying to clean things up. I am challenged by the declaration of
object variables. I get an error on the following line of code (Option
Explicit is set)
Set myItem = ActiveExplorer.Selection.Item(1)
With the following declaration
Dim myItem As Outlook.Explorer
If I declare myItem as Variant it works fine. I just would like to know
what the proper declaration for these types of object variables is. I am
having similar problems with Word Document Objects. Also if there is a good
white paper describing declaration of variables in this environment I'd much
like to know its location.
Thanks