Results 1 to 2 of 2

Thread: formfields in tables

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    17

    formfields in tables

    ActiveDocument.Tables(1).Cell(2, 1).Select
    With Selection
    .Range.Text = "test"
    .FormFields.Add Range:=Selection.Range, _
    Type:=wdFieldFormTextInput

    End With

    why doesn't the text show before the textinput .. pls enlighten me thanks
    anyone pls help

  2. #2
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045

    Re: formfields in tables

    I think you might have to refresh the screen after you add the text ...

    This is from the Word VBA HelpHeap:

    ScreenRefresh turns on screen updating for just one instruction and then immediately turns it off. Subsequent instructions don't update the screen until screen updating is turned on again with the ScreenUpdating property.

    Example
    This example turns off screen updating, opens Test.doc, inserts text, refreshes the screen, and then closes the document (with changes saved).

    Dim rngTemp As Range

    ScreenUpdating = False
    Documents.Open FileName:="C:\DOCS\TEST.DOC"

    Set rngTemp = ActiveDocument.Range(Start:=0, End:=0)

    rngTemp.InsertBefore "new"
    Application.ScreenRefresh
    ActiveDocument.Close SaveChanges:=wdSaveChanges
    ScreenUpdating = True
    Blessings in abundance,
    All the Best,
    & ENJOY!

    Art . . . . Carlisle, PA . . USA

Posting Permissions

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



Click Here to Expand Forum to Full Width