PC Review


Reply
Thread Tools Rate Thread

Auto Right Click

 
 
Steven
Guest
Posts: n/a
 
      25th Jun 2008
Can you make the Right Click so it automatically runs a macro on the Right
Click instead of having to click the Right Click and then the item. I just
want one item on the right click and I want it to run automatically.

Thank you,

Steven
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      25th Jun 2008
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
MsgBox "Right-Clicked"
Cancel = True 'cancel default action
End Sub

Tim

"Steven" <(E-Mail Removed)> wrote in message
news:AC2BCE55-ECEA-4A0D-9D71-(E-Mail Removed)...
> Can you make the Right Click so it automatically runs a macro on the Right
> Click instead of having to click the Right Click and then the item. I
> just
> want one item on the right click and I want it to run automatically.
>
> Thank you,
>
> Steven



 
Reply With Quote
 
Steven
Guest
Posts: n/a
 
      25th Jun 2008
Tim,

Thanks for the repsonse. I need to add one thing. I want to make it
permanent for all workbooks .. basically for the entire excel application.
The code below would only work on that specific workbook.

Steven

"Tim Williams" wrote:

> Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
> Boolean)
> MsgBox "Right-Clicked"
> Cancel = True 'cancel default action
> End Sub
>
> Tim
>
> "Steven" <(E-Mail Removed)> wrote in message
> news:AC2BCE55-ECEA-4A0D-9D71-(E-Mail Removed)...
> > Can you make the Right Click so it automatically runs a macro on the Right
> > Click instead of having to click the Right Click and then the item. I
> > just
> > want one item on the right click and I want it to run automatically.
> >
> > Thank you,
> >
> > Steven

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Auto Click =?Utf-8?B?anBldGVybWFubg==?= Windows XP Performance 6 26th May 2005 10:05 PM
Mouse Auto Click =?Utf-8?B?anBldGVybWFubg==?= Windows XP General 2 18th Jan 2005 10:04 AM
Mouse Auto Click =?Utf-8?B?anBldGVybWFubg==?= Windows XP Accessibility 0 17th Jan 2005 11:07 PM
set up auto mouse click ? =?Utf-8?B?YWFt?= Microsoft VB .NET 4 18th Dec 2004 12:39 AM
how do i get it to (auto click a button) Jasonc Microsoft Frontpage 1 15th Jan 2004 01:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:15 PM.