+ Reply to Thread
Results 1 to 2 of 2

How to Hide a Shape

  1. #1
    Registered User
    Join Date
    12-29-2011
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to Hide a Shape

    I have a shape that is used as a text box memo of sorts >255 characters with mixed fonts so I can not use a lable or textbox control.
    I want to hide or show the shape based on the conditon of a cell.

    This is what I have so far but it is not working as I dont know how to reference the shape properties - any ideas?
    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Address <> "$Q$21" Then Exit Sub
    Select Case Target
    Case True
    ActiveSheet.Shapes("TextBox 4").Visible = True
    Case False
    ActiveSheet.Shapes("TextBox 4").Visible = False
    End Select

    End Sub

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: How to Hide a Shape

    Hello gtslabs and welcome to the forum.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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