+ Reply to Thread
Results 1 to 6 of 6

Macro for fastest way to paste an email recipient to 400 word docs in the same folder

  1. #1
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Macro for fastest way to paste an email recipient to 400 word docs in the same folder

    Hello all...

    Is there some macro that can do this....

    1. Open first Word Document in a certain folder.
    2. Position/put the cursor in the BCC field (the email area would be open).
    3. Paste an email recipient's name in the BCC Field
    4. Save and Close the Word Document
    5. Open the next Word Document in the folder.
    6. Repeat steps 2 to 4.

    I need to do this for 400 Words Docs! Ouch!

    Any thoughts/help on this would be much appreciated

    Thanks much!

  2. #2
    Registered User
    Join Date
    06-08-2008
    Location
    UK, South East
    MS-Off Ver
    2003 + 2007
    Posts
    16

    Re: Macro for fastest way to paste an email recipient to 400 word docs in the same fo

    With a little bit of tweaking, there is a batch file find and replace macro here.
    You'd need to find the bcc field and then add something that moves the cursor ie. by using the arrow keys, as below:

    Please Login or Register  to view this content.
    All that'll then be needed is to stick all 400 docs in one folder and Hey Presto!
    Bird


    If my advice has been helpful to you, then please help me by clicking on the scales and adding to my reputation, Thanks!

  3. #3
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Macro for fastest way to paste an email recipient to 400 word docs in the same fo

    Thanks for the info Bird but I've been blocked out of that link (company has blocked it).

    Is there a way that you can just paste the code here rather than the link?

    Thanks much

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Macro for fastest way to paste an email recipient to 400 word docs in the same fo

    Copy the link into a PDF for you


    VBA Noob
    Attached Files Attached Files
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Macro for fastest way to paste an email recipient to 400 word docs in the same fo

    Hi VBA,

    I got a "wasn't correctly coded" message and could not be opened. I just upgraded to Adobe Reader 9.0. Would you try and open it and let me know if you also have a problem?

    Maybe you can try uploading it again?

    Thanks much,

    duugg

  6. #6
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Macro for fastest way to paste an email recipient to 400 word docs in the same fo

    Okay, here's the latest scoop.

    I need this macro to be able to STOP in the BCC field name so that I can then paste the email name into. None of this code tells me how to do that. I did try macro recording to get the insertion point into the BCC field but have had no luck because the STOP button in the macro recorder is grayed out when in the email field.

    I already tried this

    1. Started the macro
    2. Pressed ALT+J to go to the subject field
    3. Pressed ALT+Tab to go to the BCC field
    4. While in the BCC Field, I Typed in "BCC Text test"
    5. Went to press the Stop button in the macro recorder, it is greyed out.
    6. Because the Stop button was greyed out, I tried pressed tab 3 times
    to go back into "Word" area of the document.
    7. While in the "Word" area of the document, I typed "Body Text Test"
    8. The Stop button was no longer greyed out, so I stopped
    the macro recording by pressing the Stop button
    9. And here's the resulting code:


    Please Login or Register  to view this content.
    Notice that the following 2 things didn't even show up in the macro...

    1. Shift+TAB to go to the BCC Field (even though I tabbed to this field)
    2. The text "BCC Text Test" didn't show up at all (even though I typed it)


    Any idea what I can do about this?

    Thanks much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1