Consulting

Results 1 to 3 of 3

Thread: Hide And Show a ComboBox

  1. #1

    Hide And Show a ComboBox

    Hello again ,

    is it possible to hide and show a ComboBox in a worddocument?
    The ComboBox is direct in the worddocument, not in a UserForm!!

    How it should work:
    I have ComboBox1 with several entries in the document!
    If the user clicks on one specific of these entries, another ComboBox(2) will appear on a bookmarked position elsewhere in the same document!
    So there's only one specific entry in ComboBox1 on which ComboBox2 appears...on all other entries from ComboBox1 ComboBox2 must be hidden!

    I hope that someone can help!

    Thanks and cheers from germany!

    Matthias

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi,

    Can you post a sample doc of the progress you've made so far so we can have a look and see?
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  3. #3
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Two ways.

    1. If you use formfields in the document. Use Hidden text for the second formfield. You must turn Show/Hide off though, and you must first turn off protect for foem, then turn it back on.

    2. If you use ActiveX control comboboxes in the document. In many ways this is easier as the controls have more events to play with. These controls (unlike ActiveX controls on a UserForm do NOT have a .Visible properties. However, they DO have .Height and .Width properties. These can be set to very low values, making the control essentially so small it is almost impossible to see. This can then be nudged (if required) to just before the previous sentence end - to kind of hide them. They can be made as small as a period.

    Actually, the more important consideration is...WHY are you doing this? Is there a reasonable explanation, or it is just a neat thing to do?

Posting Permissions

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