Im not using the right mouse. If you suggest that I use the right mouse, I'd need to disable the format popup if I am in my target cell. IE If Target.Count = 1 and Target.Column = 34 and Target.Value > 0 And (GetAsyncKeyState(vbKeyLButton) = 1 And &H8000) Then ' my logic End If
On Feb 9, 9:25 am, ashish koul <koul.ash...@gmail.com> wrote: > r u using right button also > > > > > > > > > > On Wed, Feb 9, 2011 at 7:53 PM, ashish koul <koul.ash...@gmail.com> wrote: > > can you share your workbook > > > On Wed, Feb 9, 2011 at 6:57 PM, rcamarda <robert.a.cama...@gmail.com>wrote: > > >> Ashish, > >> 1. Your code worked from your example. > >> 2. in my other tests, I added added the "= 1" I had, and some of my > >> test sheets worked. > >> 3. It didnt work when i put it into my sheet where I needed it, > >> GetAsyncKeyState(vbKeyLButton) = 1 And &H8000 but it didnt work > >> 4. I opened a fresh excel, pasted your code and it worked. > >> 5. My sheet has macro enabled, so I saved your test book as xlsm and > >> your test still works. > >> 6. I can create a new sheet in my excel, and the code works on that > >> sheet. so some sheets it works, others it does not. > >> 7. On the sheet I need to trap the mouse, all code in your test works, > >> except the left mouse. In other sheets it traps everything > >> 8. When I use only > >> MsgBox GetAsyncKeyState(vbKeyLButton) > >> in my Worksheet_SelectionChange, it shows just 0 (zero). > > >> <start> > >> *rips hair out* > >> </start> > > >> Anyone have ideas on how to determine why my sheet doesnt work, but a > >> blank fresh one does? > > >> -- > > >> --------------------------------------------------------------------------- > >> ------- > >> Some important links for excel users: > >> 1. Follow us on TWITTER for tips tricks and links : > >>http://twitter.com/exceldailytip > >> 2. Join our LinkedIN group @http://www.linkedin.com/groups?gid=1871310 > >> 3. Excel tutorials athttp://www.excel-macros.blogspot.com > >> 4. Learn VBA Macros athttp://www.quickvba.blogspot.com > >> 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com > > >> To post to this group, send email to excel-macros@googlegroups.com > > >> <><><><><><><><><><><><><><><><><><><><><><> > >> Like our page on facebook , Just follow below link > >>http://www.facebook.com/discussexcel > > > -- > > *Regards* > > * * > > *Ashish Koul* > > *akoul*.*blogspot*.com <http://akoul.blogspot.com/> > > *akoul*.wordpress.com <http://akoul.wordpress.com/> > > My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> > > > P Before printing, think about the environment. > > -- > *Regards* > * * > *Ashish Koul* > *akoul*.*blogspot*.com <http://akoul.blogspot.com/> > *akoul*.wordpress.com <http://akoul.wordpress.com/> > My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> > > P Before printing, think about the environment. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel