+ Reply to Thread
Results 1 to 5 of 5

Hide and unhide row and columns to change text in text boxes

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

    Hide and unhide row and columns to change text in text boxes

    Hello,
    I have two cases, that I like to click the textbox (Macro) to hide or unhide the rows.
    Then the text in the text box would change to "See more" or "Hide rows" respectively.

    The orther case is for columns that works the same way as for the rows.

    Thanks
    Last edited by Rocky2013; 11-03-2013 at 01:12 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Hide and unhide row and columns to change text in text boxes

    Hi Rocky

    Insert this Code into a General Module then assign to your respective TextBoxes.
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: Hide and unhide row and columns to change text in text boxes

    Like this:

    Click on Cell H3 or N3....

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

    Re: Hide and unhide row and columns to change text in text boxes

    Hi Jarko28
    Your codes work seamless, perfect and exactly what I need.

    Thanks again!

  5. #5
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: Hide and unhide row and columns to change text in text boxes

    No problem, glad I could help.

    Jaslake, I was trying to work out the problem while you already posted so I didn't see you provided a sample solution. Thank you for posting, it helped me with understanding that you can attach values to shapes- so much to learn as a complete vba noob

+ 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. [SOLVED] macro to hide rows if cell is blank, unhide if it contains text
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 10:02 PM
  2. [SOLVED] hide or unhide rows based on text within a drop down list
    By souimet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 01:32 AM
  3. [SOLVED] VBA macro to hide/unhide columns depending on button text
    By namso1902 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2013, 08:12 AM
  4. Insert/delete rows or unhide/hide if cell Contains Certain text
    By ashhm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2012, 08:52 AM
  5. Hide and Unhide text
    By Jumper1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 12:20 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