+ Reply to Thread
Results 1 to 6 of 6

On_Click ?

  1. #1
    Registered User
    Join Date
    01-19-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    On_Click ?

    Just wondering if it's possible
    to have onclick_events

    So that if i was to click on a cell it would delete the text in a few other cells for me
    a delete cell_button

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: On_Click ?

    You can use the Worksheet Change or Selection Change events. What exactly do you want to do?

  3. #3
    Registered User
    Join Date
    01-19-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: On_Click ?

    Well im in need of a on_click event that deletes the text in certain cells . Any Ideas ?
    Last edited by teylyn; 01-31-2010 at 03:41 AM. Reason: quote deleted

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: On_Click ?

    Num-Cha

    please don't quote whole posts. It's just clutter. In fact, only quote when you are referring to something particular that is not in the previous post, and then only quote the pertinent lines.

    Thank you.

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: On_Click ?

    on_click applies to activex objects, I don't think you're there yet, selectionchange has already been pointed out, to try it out, go to the code of a sheet, above the main VBA editing window are two drop down boxes, the first probably says (General), select Worksheet, the second probably (now) says SelectionChange and you will have a little selection change macro all ready to go. The first thing you want to do is test the target cell (the one to which selection has been changed) to check it's the right cell for your purposes... then go nuts.

    CC

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: On_Click ?

    I supose you could use the before double click or before right click options e.g.
    Please Login or Register  to view this content.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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