Results 1 to 7 of 7
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    fit record in word document (2000 sr-1)

    I want to insert only the field filled in word line started from ...
    MODULO.ActiveDocument.FormFields(6).result

    admit i have this:

    MODULO.ActiveDocument.FormFields(6).result = garante1
    MODULO.ActiveDocument.FormFields(7).result = blank
    MODULO.ActiveDocument.FormFields(8).result = blank
    MODULO.ActiveDocument.FormFields(9).result = blank
    MODULO.ActiveDocument.FormFields(10).result = garante5

    how to filt the first 2 line of word with:
    MODULO.ActiveDocument.FormFields(6).result = garante1
    MODULO.ActiveDocument.FormFields(10).result = garante5

    in effect in normal condition the code write:

    garante1=filled
    garante2=blank
    garante3=blank
    garante4=blank
    garante5=filled

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: fit record in word document (2000 sr-1)

    Why did you post this in the Excel forum?

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: fit record in word document (2000 sr-1)

    sorry move you for me....
    Tks.
    I have in my link prefered directly Excel room;-)

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: fit record in word document (2000 sr-1)

    OK, I have moved the thread. In the future, please take a moment to choose the correct forum.

    You could test:

    If Not garante1 = "" Then
    MODULO.ActiveDocument.FormFields(6).result = garante1
    End If
    If Not garante2 = "" Then
    ...

  5. #5
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: fit record in word document (2000 sr-1)

    ok but i know this way...
    for me, i want this result

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: fit record in word document (2000 sr-1)

    Try this:

    Dim n As Integer
    n = 5
    If Not garante1 = "" Then
    n = n + 1
    MODULO.ActiveDocument.FormFields(n).result = garante1
    End If
    If Not garante2 = "" Then
    n = n + 1
    MODULO.ActiveDocument.FormFields(n).result = garante2
    End If
    If Not garante3 = "" Then
    n = n + 1
    MODULO.ActiveDocument.FormFields(n).result = garante3
    End If
    If Not garante4 = "" Then
    n = n + 1
    MODULO.ActiveDocument.FormFields(n).result = garante4
    End If
    If Not garante5 = "" Then
    n = n + 1
    MODULO.ActiveDocument.FormFields(n).result = garante5
    End If

  7. #7
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: fit record in word document (2000 sr-1)

    wow!!!!!!!!!!!!! look on fly and now, you are right. i cannot test it in my home!
    kiss!
    and tks for patience and my terrible english.
    i test tomorrow and tell you....

Posting Permissions

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