Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display AutoText in VBA form

    Does anyone know how to display a Word AutoText item in a RichTextBox control on a user form (so that the formatting is retained)?? It's easy enough to get the text to display without formatting but that's not what I need. [img]/w3timages/icons/question.gif[/img]

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display AutoText in VBA form

    A firsdt thought would be a macro that saves to a transient file in RTF format and then opens that file as a text file.

    In my clumsy way I'd actually WRITE the data to disk, but there's possible a neat-oh way to arrive at the same result by using something magic like an 'API" call or summat.

  3. #3
    New Lounger
    Join Date
    Jan 2001
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display AutoText in VBA form

    Hi Chris
    Yup, I thought of writing an autotext item to an RTF file on the fly and then it's easy. But this seems so clunky. All I'm trying to do is imitate the behaviour of Word's Preview window in Tools

Posting Permissions

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