Consulting

Results 1 to 3 of 3

Thread: Group and ungroup text

  1. #1
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location

    Group and ungroup text

    Is it possible to do something similar to this:

    Microsoft Website

    Scroll down to where it says "How" and click it. See how it expands and collapses the text. I know that they use JavaScript to do that, but I was wondering if word had it's own little method to perform something like this.

    TIA

    EDIT: I wanted to do this using a link, BTW




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Well I suppose the Word method would be to have "How" in a formfield (you can turn off the shading and bookmarks so it looks nice) and run a marco on the entry event (getting an actual click event on something other than a hyperlink might be tricky)
    So the macro can then hide the text. I'm sure there are a number of ways of doing that - I'd be inclined to have make a 2 row table suitably formatted with the formfield in row1 and the text in row 2 - that way, referencing the text to show/hide will be easy because it will be row 2 of the table the selection object is in.
    You can then collapse/expand the text by setting the height of row 2
    K :-)

  3. #3
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    There are number of ways to hide things in Word. Here is a very simple way using Hidden font.

    The ActiveX button toggles between states.

    The exact method would depend on exactly what was the goal.

    I am not sure is meant by "group and ungroup". The example is not grouping - it is a visiblity issue.

Posting Permissions

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