+ Reply to Thread
Results 1 to 7 of 7

Disappearing Callouts

  1. #1
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Disappearing Callouts

    I have several Callouts on a sheet explaining to the user what data to place in a specific cell. What I'd like to happen is that once the user enters the data into the specific cell for the callout to disappear.

    Thanks in Advance.

    EP

  2. #2
    Jim Thomlinson
    Guest

    RE: Disappearing Callouts

    You can give this code a try. It must be placed in the sheet with the
    callouts (right click the sheet tab and select view code). It reacts to
    changes in Cell A1 and hides or unhides the callout AutoShape 1 (you may need
    to change this) based on whether there is something entered in the cell...

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
    If Target.Value = "" Then
    Shapes("AutoShape 1").Visible = msoTrue
    Else
    Shapes("AutoShape 1").Visible = msoFalse
    End If
    End If
    End Sub
    --
    HTH...

    Jim Thomlinson


    "edwardpestian" wrote:

    >
    > I have several Callouts on a sheet explaining to the user what data to
    > place in a specific cell. What I'd like to happen is that once the user
    > enters the data into the specific cell for the callout to disappear.
    >
    > Thanks in Advance.
    >
    > EP
    >
    >
    > --
    > edwardpestian
    > ------------------------------------------------------------------------
    > edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
    > View this thread: http://www.excelforum.com/showthread...hreadid=549561
    >
    >


  3. #3
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Works but...

    Works great, but I actually have 3 callouts that I need disappear. Each callout is linked to different. Can you modify the code for this?

    Thanks again.

    EP

  4. #4
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Works but...

    Works great, but I actually have 3 callouts that I need disappear. Each callout is linked to different. Can you modify the code for this?

    Thanks again.

    EP

  5. #5
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215
    Works great, but I actually have 3 callouts that I need disappear. Each callout is linked to different. Can you modify the code for this?

    Thanks again.

    EP

  6. #6
    Jim Thomlinson
    Guest

    Re: Disappearing Callouts

    Modify this to suit by changing the Addresses ($A$1, $B$1, $C$1) and the
    names of the callouts (AutoShape 1, AutoShape 2, AutoShape 3)...

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
    If Target.Value = "" Then
    Shapes("AutoShape 1").Visible = msoTrue
    Else
    Shapes("AutoShape 1").Visible = msoFalse
    End If
    ElseIf Target.Address = "$B$1" Then
    If Target.Value = "" Then
    Shapes("AutoShape 2").Visible = msoTrue
    Else
    Shapes("AutoShape 2").Visible = msoFalse
    End If
    ElseIf Target.Address = "$C$1" Then
    If Target.Value = "" Then
    Shapes("AutoShape 3").Visible = msoTrue
    Else
    Shapes("AutoShape 3").Visible = msoFalse
    End If
    End If

    End Sub
    --
    HTH...

    Jim Thomlinson


    "edwardpestian" wrote:

    >
    > Works great, but I actually have 3 callouts that I need disappear. Each
    > callout is linked to different. Can you modify the code for this?
    >
    > Thanks again.
    >
    > EP
    >
    >
    > --
    > edwardpestian
    > ------------------------------------------------------------------------
    > edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
    > View this thread: http://www.excelforum.com/showthread...hreadid=549561
    >
    >


  7. #7
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Works Great, but can I take it one step further

    The three cells also have a border around them, can I also have the border removed when the data is entered into the cell.

    Thanks Again.

    EP

+ 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