I have the following macro to extract and combine excel files from outlook. The macro does not work on the start with variables declaration. I get an error:
"Compile error
User-defined type not defined"
Dim OutlookNamespace As Namespace
Dim Folder As MAPIFolder
Dim OutlookMail As Variant
Dim i As Integer