Results 1 to 16 of 16

Thread: Transferring Word to Excel -

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Quote Originally Posted by Thyme2Cook View Post
    It turns out that a change on 9/1 to the VBA in the Word document's template is causing the issue. I had added some code to manage the dropdown values of the last form field. When I attempted to import form data that predates the change there is no error.
    Without seeing what specific changes you made, I really can't comment on their impact.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  2. #2
    Quote Originally Posted by macropod View Post
    Without seeing what specific changes you made, I really can't comment on their impact.
    I'm chalking this one up to gremlins and since I now have a solution I'm good. Here's the code that I added to the Word template that I assume caused the issue in case anyone is interested. Restoring a previous version of the template that does not have this code resolved my issue.

    Dim InAcRsn As String
     
    '''''Manages "Inactive_Reason" dropdown.
     
    With ActiveDocument.FormFields("Inactive_Reason").DropDown.ListEntries
        .Clear
        .Add "    "
        .Add "Deceased"
        …
    End With
    If InAcRsn = "" Then
        ActiveDocument.FormFields("Inactive_Reason").Result = "    "
    Else
        ActiveDocument.FormFields("Inactive_Reason").Result = InAcRsn
    End If
    Till next time

Posting Permissions

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