View Single Post
  #9  
Old August 17th 06, 10:11 PM posted to microsoft.public.outlook.program_vba
LongWayFromHome
external usenet poster
 
Posts: 7
Default Sample Code for Merge With Attachments?

OK. Here is what I am doing, which I'm sure reflects my naivete with Outlook
and Word macros. I am following the MVP instructions as I understand them.

Word is running. The merge document (with the 9 emails) is open.

Outlook is running. Nothing in Outlook is open. I have copied the macro,
MergeWithAttachments, into Outlook VBA without changing anything. When I try
to compile the macro, these lines produce these errors:

Dim Source As Document: User-defined type not defined.
Dim Maillist As Document: ditto
Dim Datarange As Range: ditto
With Dialogs(wdDialogFileOpen): Sub or Function not defined. ("Dialogs" is
highlighted.)

When I comment-out these lines, the code compiles.

Hope you can clue me in! Thanks.

--
Dave


"Sue Mosher [MVP-Outlook]" wrote:

Since we can't look over your shoulder, you'll have to give us some clues about the problems you're encountering.


Ads