+ Reply to Thread
Results 1 to 3 of 3

On Button Click(Help!)

  1. #1
    Registered User
    Join Date
    06-01-2005
    Posts
    13

    On Button Click(Help!)

    Hey everyone,

    I was wondering if you guys could help me out with a problem I have. I was wondering if it would be possible to have a button such that excel will locate which cell the button is over and insert a row above that cell. Is there a VBA function that returns the location of the cell where the mouse was clicked? Thanks a lot!

  2. #2
    Chandra
    Guest

    Re: On Button Click(Help!)

    Hi
    Just check this one. I believe that it should give u an idea.

    in the button click event:

    Private Sub <ButtonName>_Click()
    MsgBox <ButtonName>.TopLeftCell.AddressLocal
    End Sub

    best Regards,
    Chandra
    http://groups.msn.com/SQLResource/
    http://chanduas.blogspot.com/
    ---------------------------------------

    *** Sent via Developersdex http://www.developersdex.com ***

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,670
    Hi

    paste the code onto sheet module
    Please Login or Register  to view this content.

+ 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