Yoan_Geneva
11-13-2018, 06:00 AM
Dear members,
I have the following the code to forward an email outlook to another email adresses.
sub Forward_Email
Dim myItem as outlook.mailitem
Dim oloutmail as outlook.mailitem
Dim myinspector as outlook.inspector
Dim wdDoc as word.document
Dim wdRange as word.range
Dim outapp as object
Set Outapp=outlookApp
Set myitem = outapp.activeExplorer.selection.item(1)
set myinspector=myitem.GetInspector
set wdDoc=myInspector.WordEditor
There is a bug with the following code:
set wdDoc=myInspector.WordEditor --> "Application-defined or object-defined error"
Anyone can help with this error.
(I didn't put the full code as I can't copy paste my code)
Thanks
I have the following the code to forward an email outlook to another email adresses.
sub Forward_Email
Dim myItem as outlook.mailitem
Dim oloutmail as outlook.mailitem
Dim myinspector as outlook.inspector
Dim wdDoc as word.document
Dim wdRange as word.range
Dim outapp as object
Set Outapp=outlookApp
Set myitem = outapp.activeExplorer.selection.item(1)
set myinspector=myitem.GetInspector
set wdDoc=myInspector.WordEditor
There is a bug with the following code:
set wdDoc=myInspector.WordEditor --> "Application-defined or object-defined error"
Anyone can help with this error.
(I didn't put the full code as I can't copy paste my code)
Thanks