Consulting

Results 1 to 10 of 10

Thread: Solved: While mouse cursor on top of A1 cell...

  1. #1
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location

    Solved: While mouse cursor on top of A1 cell...

    Hi,

    I would like to change A1 cell's Interior.ColorIndex to red color and A1's font format to Italic, while mouse cursor on top of A1 cell.

    Can i do it with a VBA code?

    Thanks a lot.


    For example:

    [vba]
    Sub CursorOnA1()
    If MouseCursor OnTopOf [A1] Then
    With [A1]
    .Interior.ColorIndex = 3
    .Font.Italic = True
    End If
    End If
    End Sub
    [/vba]
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    You can do that when the cell is selected, but not on a mouseover.

  3. #3
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Ok, thank you very much.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  4. #4
    VBAX Contributor Ivan F Moala's Avatar
    Joined
    May 2004
    Location
    Auckland New Zealand
    Posts
    185
    Location
    you "Can do" this via Win API's, ....
    Kind Regards,
    Ivan F Moala From the City of Sails

  5. #5
    VBAX Contributor Ivan F Moala's Avatar
    Joined
    May 2004
    Location
    Auckland New Zealand
    Posts
    185
    Location
    Kind Regards,
    Ivan F Moala From the City of Sails

  6. #6
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Well done, Ivan




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  7. #7

  8. #8
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Hi there,

    Dear DRJ, i want to thank you for all. And please excuse me for my wonder, i said you it's ok but, then i can't stopped my wonder about it.
    Especially after when i saw a code about treeview sample. In that code, while i move the cursor on an UserForm, X and Y values calculating on the caption of the UserForm. I said that, if this can be, so why not for a Cell?

    So, thank you very much for answering and show interest in to my question.


    And Dear Ivan F Moala,
    I can't beileve my eyes. API is unbelievable. Its works perfect.

    One of my friend asked me a question about same matter in T?rkiye. Can i share that code (together giving your name) with my other friends on internet?

    Best regards...
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  9. #9
    VBAX Contributor Ivan F Moala's Avatar
    Joined
    May 2004
    Location
    Auckland New Zealand
    Posts
    185
    Location
    Quote Originally Posted by Erdin? E. Ka
    Hi there,

    Dear DRJ, i want to thank you for all. And please excuse me for my wonder, i said you it's ok but, then i can't stopped my wonder about it.
    Especially after when i saw a code about treeview sample. In that code, while i move the cursor on an UserForm, X and Y values calculating on the caption of the UserForm. I said that, if this can be, so why not for a Cell?

    So, thank you very much for answering and show interest in to my question.


    And Dear Ivan F Moala,
    I can't beileve my eyes. API is unbelievable. Its works perfect.

    One of my friend asked me a question about same matter in T?rkiye. Can i share that code (together giving your name) with my other friends on internet?

    Best regards...
    Hi Erdin? E. Ka

    Yes of course you can, I have a number of friends on T?rkiye boards I visit.
    Raider & Jale
    Kind Regards,
    Ivan F Moala From the City of Sails

  10. #10
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Hi Ivan F Moala, I am already on T?rkiye Board and i saw your membership.

    I know Raider and Jale's names but i don't meet them, also they aren't visiting T?rkiye Board since 1 year.

    Anyway, thank you again to your kindly help.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •