Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Feb 2004
    Location
    Carson City, Northamptonshire, Wales
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA 2003 & rich text boxes (Office 2003)

    If anyone is creating forms in VBA and want to include a rich text box control by referencing richtx32.ocx, you may run into a problem whereby when adding the control you recieve a message stating the control is not trusted. Nice. There is a registry workaround that you can implement:

    HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{3B7C8860-D78F-101B-B9B5-04021C009402}

    Change the Compatibility Flags value to 0.

    Hope this eliminates someone else's headache!

    Slang

  2. #2
    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 2003 & rich text boxes (Office 2003)

    When do you get this message? Only at design time or at run time (or does it prevent you from using it at all)?

    Your workaround removes the kill bit on the control, meaning that it now can be instantiated by scripts in HTML pages and HTA (applications) rendered through IE. Unless you are absolutely certain that you won't be opening any untrusted web pages, or you disable all ActiveX functionality and block downloading of HTA files, then you might be creating risks for yourself that you really would rather not incur.

Posting Permissions

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