Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA Text Boxes (Word 2000 +)

    Can anyone please help; I have created a VBA form that enables users to compile a document by inserting clauses (these clauses are individual documents for ease of maintenance) the form uses the Rich Textbox control, this is a VB control and is not available on the PC I want to run the form on.

    Can you use the text box to view a word text rtf document if so please can someone tell me how this is done

    Regards

    Mike Walker

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA Text Boxes (Word 2000 +)

    The answer is no, you cannot. The text box control in all versions of VB/VBA, etc. may
    contain only unformatted text. The RTC is for formatted text. Why not just plop the inserted
    clauses right into a new document?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: VBA Text Boxes (Word 2000 +)

    You shoul dbe able to distribute the Rich Textbox control (RICHTX32.OCX) with your application. You can copy it to the System32 subfolder of the Windows folder on the target system and use

    regsvr32 pathRICHTX32.OCX

    Where path is the path to the folder you copied the control to. This should licence the control for end user use.

    All this assumes you are properly licenced to develop with the Rich Text control. If you have VB Professional lor better, then you are. I'm not sure if it is included with the Office Developer edition.

    Andrew C

  4. #4
    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: VBA Text Boxes (Word 2000 +)

    The RichTX32.ocx Rich Textbox control is indeed included in Office Developer:

    Microsoft Knowledge Base Article 297391 - OFFXPDEV: ActiveX Controls That Are Included with Microsoft Office XP Developer

    Microsoft Knowledge Base Article 208283 - ACC2000: Supported ActiveX Controls for Microsoft Access 2000
    Listing Richtx32.ocx as one of the controls installed with ODE 2000

    My printed license agreement for ODE 2000 refers me to REDIST.TXT, located on my PC in C:Program FilesMicrosoft OfficeODEToolsV9, where richtx32.ocx is listed under "REDISTRIBUTABLE CODE - STANDARD." This category of file can be redistributed "in conjunction with and as part of a software application product developed by you that adds significant andprimary functionality to the Redistributables." I figure the XP license would be basically the same.

  5. #5
    New Lounger
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA Text Boxes (Word 2000 +)

    Thanks for you help

Posting Permissions

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