+ Reply to Thread
Results 1 to 5 of 5

Show/hide text Boxes on several sheets by running a macro

  1. #1
    Registered User
    Join Date
    04-29-2007
    Location
    Lisbon, Portugal
    Posts
    58

    Show/hide text Boxes on several sheets by running a macro

    Dear all,

    I want associate a vba code to a button in order to show/hide several text boxes in different sheets on the same workbook.

    I have already been able to toggle a text box ("ClosingLabel") on the active sheet but yet not able do do so on other sheets.
    The code for that in as follows:

    Please Login or Register  to view this content.
    I would appreciate your precious help!
    Regards,
    Manuel

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Show/hide text Boxes on several sheets by running a macro

    Hi mlcfexcel,

    Try the following (tested and working using Excel 2003):
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    04-29-2007
    Location
    Lisbon, Portugal
    Posts
    58

    Re: Show/hide text Boxes on several sheets by running a macro

    Thank you Lewis!
    But I am looking for something different. I trying to activate/deactivate text box in other sheets by running a macro on a specific sheet. Would you have a suggestion for this problem?

    Cheers
    Manuel

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Show/hide text Boxes on several sheets by running a macro

    Hi Manuel,

    My code toggles the shape "ClosingLabel" in all Sheets. It doesn't matter what Sheet the Macro is called from. If you're still having problems, please upload a sample file with 2 or 3 sheets, because we probably aren't understanding each other.

    Lewis
    Last edited by LJMetzger; 08-02-2014 at 03:58 PM.

  5. #5
    Registered User
    Join Date
    04-29-2007
    Location
    Lisbon, Portugal
    Posts
    58

    Re: Show/hide text Boxes on several sheets by running a macro

    My mistake. You're completely right! The macro works perfectly.
    Thank you again Lewis.
    Regards,
    Manuel

+ 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. Sheets class to not show each sheet when running a macro
    By hermithead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2010, 07:22 AM
  2. Problem with macro - show/hide sheets
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2009, 04:13 AM
  3. hide/show multiple sheets by macro ?
    By Simon-ch in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-30-2008, 05:25 AM
  4. [SOLVED] Simplest way to show/hide boxes when a Macro is run
    By white-ryland in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2006, 07:00 PM
  5. Replies: 0
    Last Post: 05-17-2006, 06:40 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