Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
LyndieBee LyndieBee is offline
external usenet poster
 
Posts: 13
Default Email Merge with Attachment

I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge with
email addresses and document names. I've created the letter merge to a new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Email Merge with Attachment

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break, doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
LyndieBee LyndieBee is offline
external usenet poster
 
Posts: 13
Default Email Merge with Attachment

For my test file, it is a one-liner attachment with only one section. Do I
need section break at the end of the text?

"Doug Robbins - Word MVP" wrote:

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break, doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
LyndieBee LyndieBee is offline
external usenet poster
 
Posts: 13
Default Email Merge with Attachment

In answer to your Express ClickYess utility, yes I have downloaded it and it
works fine. Thanks!

"LyndieBee" wrote:

For my test file, it is a one-liner attachment with only one section. Do I
need section break at the end of the text?

"Doug Robbins - Word MVP" wrote:

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break, doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie




  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
LyndieBee LyndieBee is offline
external usenet poster
 
Posts: 13
Default Email Merge with Attachment

I believe I misunderstood your question. There are 5 section. A Next Page
Section Break after each of the letters, and a Continuous Section Break at
the end of the document.

"Doug Robbins - Word MVP" wrote:

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break, doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie






  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Email Merge with Attachment

It was not the attachment about which I was asking the number of Sections.
It was the mail merge document that is going to be emailed and to which the
other document/file is going to be attached. That is the document that is
created by executing the merge to a new document and which is to be the
Active Document when the macro is run.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
For my test file, it is a one-liner attachment with only one section. Do
I
need section break at the end of the text?

"Doug Robbins - Word MVP" wrote:

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break,
doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program
is
trying to automatically send e-mail..." for the 3 addresses in my
sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so
close
and yet so far away.
Thanks,
Lyndie






  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Email Merge with Attachment

It sounds like you did not use the same datasource to create that document
as you used to create the directory document in which then filenames of the
attachments appear, or at least did not merge the same number of records
each time.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I believe I misunderstood your question. There are 5 section. A Next Page
Section Break after each of the letters, and a Continuous Section Break at
the end of the document.

"Doug Robbins - Word MVP" wrote:

Have you activated the Express Click Yes utility?

What you see in the Visual Basic Editor after pressing Ctrl-Break,
doesn't
really mean anything is wrong with that section of the code.

In the letter that you are trying to email with the attachments, how many
Sections are there?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LyndieBee" wrote in message
...
I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge
with
email addresses and document names. I've created the letter merge to a
new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program
is
trying to automatically send e-mail..." for the 3 addresses in my
sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it
points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so
close
and yet so far away.
Thanks,
Lyndie






  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Joris Joris is offline
external usenet poster
 
Posts: 1
Default Email Merge with Attachment

Hi,
I tried to do the same (using the emailmergewithattachments macro) and
didn't get really far. Visual basic points to the 'Dim oOutlookApp As
Outlook.Application' line.

I merged a word table with an excel db. That word table contains in the
first column the emails, in the second the attachment name and location. I
tried with the first row as the headings or not.
I then merged my excel db with a word template letter. ANd upon running the
macro, it doesn't work, opening visual basic as previously said.

Any help much appreciated.

Thanks

"LyndieBee" wrote:

I'm using the directions from Doug Robbins "Mail Merge to E-mail with
Attachments" article. I've done the prep, created the directory merge with
email addresses and document names. I've created the letter merge to a new
document and run the macro. Every thing seems to work correctly at the
start--I get the "Enter the subject..." and the rest of the preliminary
stuff. Then it starts to do it's work and I answer Yes to "A program is
trying to automatically send e-mail..." for the 3 addresses in my sample
list. But at this point it seems to hang and I continue getting this
Information box for Document 4, Document 5, Document 6, etc. until I
Ctrl-Break to stop the process. When I look at the macro contents it points
to this section:
End With
Set oItem = Nothing
ActiveDocument.Close wdDoNotSaveChanges
Counter = Counter + 1
Wend
Any ideas about what my problem is and how I can correct it? I'm so close
and yet so far away.
Thanks,
Lyndie

  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Email Merge with Attachment

Joris wrote:
Hi,
I tried to do the same (using the emailmergewithattachments macro) and
didn't get really far. Visual basic points to the 'Dim oOutlookApp As
Outlook.Application' line.

From the vba editor Tools References - check the Microsoft Outlook option.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




  #10   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Allan S. Warrior Allan S. Warrior is offline
external usenet poster
 
Posts: 5
Default Email Merge with Attachment

I'm also having trouble with the same variable declaration. I do have the
Outlook Reference checked, but it still fails to recognize the type.

Outlook 2003, Word 2003, Windows XP.

--
Allan S. Warrior
Microsoft Office Specialist Master Instructor


"Graham Mayor" wrote:

Joris wrote:
Hi,
I tried to do the same (using the emailmergewithattachments macro) and
didn't get really far. Visual basic points to the 'Dim oOutlookApp As
Outlook.Application' line.

From the vba editor Tools References - check the Microsoft Outlook option.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org







  #11   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Email Merge with Attachment

The reference is to the "Microsoft Outlook 11.0 Object Library"?

Are you able to use Outlook to send a document by selecting Send from the
File menu in Word?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Allan S. Warrior" warriora at yahoodotcom wrote in message
...
I'm also having trouble with the same variable declaration. I do have the
Outlook Reference checked, but it still fails to recognize the type.

Outlook 2003, Word 2003, Windows XP.

--
Allan S. Warrior
Microsoft Office Specialist Master Instructor


"Graham Mayor" wrote:

Joris wrote:
Hi,
I tried to do the same (using the emailmergewithattachments macro) and
didn't get really far. Visual basic points to the 'Dim oOutlookApp As
Outlook.Application' line.

From the vba editor Tools References - check the Microsoft Outlook
option.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org







  #12   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Allan S. Warrior Allan S. Warrior is offline
external usenet poster
 
Posts: 5
Default Email Merge with Attachment

Sorry, I was being an idiot. Or at least demonstrating very poor attention to
detail. I clicked the reference, but missed the checkbox. When I went back
in to check once again, I discovered my error. Once corrected it worked
great. I blame Friday-mind.
--
Allan S. Warrior
Microsoft Office Specialist Master Instructor


"Doug Robbins - Word MVP" wrote:

The reference is to the "Microsoft Outlook 11.0 Object Library"?

Are you able to use Outlook to send a document by selecting Send from the
File menu in Word?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Allan S. Warrior" warriora at yahoodotcom wrote in message
...
I'm also having trouble with the same variable declaration. I do have the
Outlook Reference checked, but it still fails to recognize the type.

Outlook 2003, Word 2003, Windows XP.

--
Allan S. Warrior
Microsoft Office Specialist Master Instructor


"Graham Mayor" wrote:

Joris wrote:
Hi,
I tried to do the same (using the emailmergewithattachments macro) and
didn't get really far. Visual basic points to the 'Dim oOutlookApp As
Outlook.Application' line.

From the vba editor Tools References - check the Microsoft Outlook
option.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org








Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you add an attachment to a mail merge email? Mezza, NZ Mailmerge 1 December 13th 07 05:46 AM
mail merge to email with attachment steph Mailmerge 3 January 8th 07 06:25 PM
How do I add an attachment to an email merge? MJW3 Mailmerge 1 August 17th 06 06:16 AM
how can you send a email merge to over 200 with an attachment LJ Mailmerge 11 September 19th 05 06:41 PM
how to add an attachment to an email merge Graham Mayor Mailmerge 1 August 13th 05 05:59 AM


All times are GMT +1. The time now is 08:31 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"