+ Reply to Thread
Results 1 to 7 of 7

Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Hello,
    I like to have a VBA to expand and collapse rows of cells. I do not like data>group which
    add a wide column on the left side with "+" or "-".
    Thanks
    Last edited by Rocky2013; 08-24-2013 at 03:19 PM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    I think something like this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Hello,
    It seems there is some issue with the codes.
    1. I copied the code to sheet1,
    2. Click "-" in A6, rows 7 to 11 collapes, but the "-" did not change to "+".
    3. Click "-" in A6 to expand the rows, nothing happen.
    4. Click A12, it works the same exact ways,
    5. Click A17 to collapes the rows, it did not work.

    Can you plesae or anyone take a look.

    Thanks

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Hi,
    Thanks for trying again. I click A6 and A12, the rows collapsed, but I click again, the hidden rows did
    not show up immediately. If I wait 30 seconds, the rows may unhid. Some case the rows did not unhide.
    The third one A16 does not works either ways. There is pop-up message "run-time error '1004': Application
    -defined or object-defined error. ". Is there way to change the sign, after the cell is bewteen toggleed?

    Thanks

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Hi Rocky,
    try it
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text

    Hi nilem,
    The VBA works seamless, it even changes the sign. Thanks again.

    Hi yodlugar,
    Even I am not using yours. I am very appreicate your time and effort. I am sure I will back with other helps while
    I am slowing learn VBA starting from first grade. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  2. Excel VBA Code to make my Toggle Buttons output "Yes" or "No" to their cells
    By mebanet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 06:14 AM
  3. Vlookup LEFT of the "^" sign, IF "^" is present in the string
    By ConstantinV in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-02-2013, 03:26 PM
  4. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  5. Replies: 5
    Last Post: 06-26-2006, 09:23 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1