E
Ed from AZ
I have a macro in Word that iterates through my Favorites folder and
saves everything out as hyperlinks in a Word doc. I then SaveAs using
doc.SaveAs FileName:= _
"C:\Documents and Settings\edward.millis\Documents\MyFaves.htm",
_
FileFormat:=wdFormatHTML
This macro was written in Word XP, which has now been upgraded to
2007. The OS has also been updated from WinXP Pro to Vista Pro.
When I run the macro in Word only, it runs fine - the file is
generated and saved to the correct folder in the correct format.
I want to email the file out, so I am trying to run it from within an
Outlook 2007 macro. (Security settings prevent Word VBA from
accessing OL VBA, or I would do it all from within Word.)
The OL macro creates the Word instance just fine and runs the macro
just fine - until it hits the SaveAs. I put a STOP in the Word code
just before the SaveAs to verify this - as soon aas I F8 to the
SaveAs, my error handler tells me that Outlook VBA has the following
error:
-2147417851
Method "Run" of object "Application" failed
Any suggestions on getting this macro to run when accessed from OL
VBA?
Ed
saves everything out as hyperlinks in a Word doc. I then SaveAs using
doc.SaveAs FileName:= _
"C:\Documents and Settings\edward.millis\Documents\MyFaves.htm",
_
FileFormat:=wdFormatHTML
This macro was written in Word XP, which has now been upgraded to
2007. The OS has also been updated from WinXP Pro to Vista Pro.
When I run the macro in Word only, it runs fine - the file is
generated and saved to the correct folder in the correct format.
I want to email the file out, so I am trying to run it from within an
Outlook 2007 macro. (Security settings prevent Word VBA from
accessing OL VBA, or I would do it all from within Word.)
The OL macro creates the Word instance just fine and runs the macro
just fine - until it hits the SaveAs. I put a STOP in the Word code
just before the SaveAs to verify this - as soon aas I F8 to the
SaveAs, my error handler tells me that Outlook VBA has the following
error:
-2147417851
Method "Run" of object "Application" failed
Any suggestions on getting this macro to run when accessed from OL
VBA?
Ed