+ Reply to Thread
Results 1 to 3 of 3

Show or hide a control (image)

  1. #1
    Registered User
    Join Date
    09-12-2009
    Location
    Las Vegas, Nevada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Show or hide a control (image)

    How can I show an image when I enter a cell then hide the image when I leave the cell?

    In other words if I enter, tab, or click on cell C3 a control becomes visible (in this case an image control), then if I tab, click or enter any other cell the control is hidden.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Show or hide a control (image)

    Hi tracktor,

    The following Worksheet_SelectionChange event macro shows or hides a shape (Oval 1) depending on whether C3 is the active cell or not (respectively) on the sheet the code is assigned to:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Show or hide a control (image)

    Apart from breaching Rule 8 of this forum rules, it's plain forum etiquette to state that you're posting the same question on another forum (cross-posting) to save anyone (like me) wasting time trying to help when the issue has already been solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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