+ Reply to Thread
Results 1 to 3 of 3

Execute code via curser position?

  1. #1
    Registered User
    Join Date
    04-26-2008
    Posts
    11

    Execute code via curser position?

    Hi,

    I have a problem I can not solve on my own...


    I have a text box (Text Box A) in a worksheet.

    By moving the mouse cursor over Text Box A (not clicking) I would like to activate some VBA code, making another text box (Text Box B) appear.

    By moving the cursor away from Text Box A I would like to run some other code making Text Box B disapear.

    ANY suggestions are welcome!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    This is pretty clunky but try using the mousemove and selection change events. Assumes that the first textbox is called textbox1, and the second one is textbox2.

    Moving the mouse over textbox1 will show textbox2, and moving the cell selection will make it invisible.

    Please Login or Register  to view this content.
    Another option may be to invoke an ontime event that will make textbox2 visible = false after say 5 seconds.

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    04-26-2008
    Posts
    11
    Thanks alot!

    I went go for the OnTime-suggestion and it works excellent!

+ 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