+ Reply to Thread
Results 1 to 5 of 5

Add formula to cell with a mouse click

  1. #1
    Registered User
    Join Date
    04-07-2012
    Location
    Cali
    MS-Off Ver
    Excel 2010
    Posts
    1

    Add formula to cell with a mouse click

    I would like to figure out how to write a formula to put an X in a cell with a right mouse click. Can this be done or am I dreaming?
    Last edited by Richard Buttrey; 04-09-2012 at 06:39 AM. Reason: Revised title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need a formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-05-2009
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2003,2007
    Posts
    8

    Re: Need help with a formula.

    This can be done using Right Click event in VBA

    Thanks,
    Analytics-Tools.com

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need help with a formula.

    Superdave66,

    Thanks for changing your title, however its still not as per the forum rules. Please change it to something like "formula to put an X in a cell with a right mouse click". Appreciate your co-operation.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Add formula to cell with a mouse click

    Hello Dave,

    I've changed your title to something a bit more relevant.

    In VBA you would go to the sheet in question and add the following Before right click event.

    Please Login or Register  to view this content.
    You could also use the same code in the double click event if you prefer. Just change the A1 reference to whatever cell you have in mind.

+ 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