Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Essex, England
    Posts
    175
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    I
    Regards,

    Steve

    "A good friend will help you move; a really good friend will help you move a body"

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

    Re: Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    There was a long thread about something similar last year, but it is not available at the moment. The conclusion was that it is difficult to do this; it may be better to let the user enter as much as (s)he likes in the form fields, and use Exit macros to do check the length of the text that has been entered, and to move part of it to the end of the document if necessary. Using a non-proportional font such as Courier New makes it easier to match the number of characters to the width of the form field (and to preserve that typewriter look <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)

    Also see <post#=300877>post 300877</post#>.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    I'm not sure Word is able to react to input into a formfield in real time (e.g., using the WindowSelectionChange event). Would it be acceptable to have a separate formatting step where a macro "cleans up" the form?

  4. #4
    Lounger
    Join Date
    Feb 2003
    Location
    Renfrewshire, Scotland
    Posts
    35
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    Hi Steve,
    I have a very similar problem in that I need to truncate text (if necessary) to fit between two tab positions in a document. The tab positions are set using 'Selection.ParagraphFormat.TabStops.Add Position:=CentimetersToPoints(3), Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces' commands and what I think is needed is a command similar to the 'Add Position:=CentimetersToPoints(3)', which will convert the text string to a length in centimeters, points or whatever. Did you manage to resolve your problem and if so how, or has anyone got another idea?

  5. #5
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Essex, England
    Posts
    175
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    Dougie,

    This was quite an old post and, although I remember the problem, I can't remember the resolution, (assuming there was one). I've changed contracts a couple of times since then so looking back at what we ended up with isn't an option, either. I seem to rmeeber having to strongly suggest they use Courier New as the font so that the number of characters could be counted accurately, but it was an unpopular recommendation because they wanted to take advantage of the slicker appearance that proportional fonts can give.

    Sorry to be vague.

    Steve
    Regards,

    Steve

    "A good friend will help you move; a really good friend will help you move a body"

  6. #6
    Lounger
    Join Date
    Feb 2003
    Location
    Renfrewshire, Scotland
    Posts
    35
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Question Regarding forms in Word 2000 (MS Office 2000 SR1)

    Edited by HansV to replace very long URL with a link

    Thanks Steve but while I was searching I cam across this in google groups see here
    There were some answers using textheight and textwidth vb commands specifically for text boxes and forms which may be of interest to you (even though you've moved!)

    Dougie

Posting Permissions

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