+ Reply to Thread
Results 1 to 3 of 3

problem with mailmerge

  1. #1
    Registered User
    Join Date
    MS-Off Ver

    problem with mailmerge

    Hi everyone,

    Im working on a macro that will run a mailmerge in WORD and find the record from the field ID , this number should be coming from a textbox in a userform , the problem is that this field require the input to be a number , when i change the field in the code to say last name or anything else that requires a text it works without any problem , but once i input a number the word hang without any error or anything ,

    this is the code :

    Please Login or Register  to view this content.
    Thank you.
    Last edited by houbal; 05-21-2015 at 06:52 AM. Reason: not complaying to rule 3

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010

    Re: problem with mailmerge

    Welcome to the forum. Pls take some minutes to read forum rules, because:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru macropod's Avatar
    Join Date
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010

    Re: problem with mailmerge

    Hi houbal,

    Your problem description suggests your ID field or textbox contains something other than just the numbers - perhaps spaces or other characters that result in FindRecord not locating the records concerned. In any event, since it seems you're only outputting one record at a time, I question the need for using a VBA-driven mailmerge to do this. You could do it just as easily or more so with VBA alone.
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vba mailmerge problem
    By roberto21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2013, 02:55 PM
  2. Problem with percentage when using Excel for MailMerge
    By Shirley Munro in forum Excel General
    Replies: 7
    Last Post: 12-12-2008, 09:41 AM
  3. xcel/Word 2007-mailmerge problem.
    By Bob Tourkow in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 04:35 AM
  4. [SOLVED] MailMerge Problem
    By Doreen in forum Excel General
    Replies: 0
    Last Post: 08-22-2005, 12:05 PM
  5. Problem using excel workbook in word mailmerge
    By Ellen in forum Excel General
    Replies: 3
    Last Post: 05-03-2005, 03:06 PM

Tags for this Thread


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