Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2005, 06:37 AM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sheet_MouseMove event?

Hi,

I am trying to do the following:

Making a MouseMove event for a sheet. When the cursor reaches the top of a sheet, i would like to show my personal commandbar. This is similar to the "Auto-Hide Taskbar" option of the taskbar below your screen (with "Start").

Does anyone know IF this is possible, and how it would be done?

thanks
max
 
Old March 5th, 2005, 07:31 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Max,

If it´s question about one sheet you can place an image object to the sheet.
Set its properties:
Top=0
Left=0
Width=12288
Height=1
BackStyle=Transparent
BorderStyle=None
OnMouseMoveEvent=Application.CommandBars("Your commandbar").Visible = True

-vemaju
 
Old March 5th, 2005, 07:41 AM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thats a great idea! thanks alot vemaju. Is it also possible to run a routine when the user moves the cursor at a specific spot on the Worksheet, i.e. a Sheetx_MouseMove(X as integer, Y as integer) ?

thanks
-Max
 
Old March 5th, 2005, 02:41 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

It seems that there is no way to trigger MouseMove event.
I checked API calls too.

-vemaju

 
Old March 5th, 2005, 03:13 PM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok thank you for your help vemaju





Similar Threads
Thread Thread Starter Forum Replies Last Post
Event - Sender & Event args dash dev C# 2005 9 December 9th, 2007 07:24 AM
first event bostek Excel VBA 2 September 7th, 2006 02:13 AM
What Event Exactly? Macsood ASP.NET 1.0 and 1.1 Basics 6 October 26th, 2005 09:24 AM
About Button event and Keydown event zhangxujun1981 XSLT 1 March 6th, 2004 04:59 AM
how to override an event with an event? blah VB.NET 2002/2003 Basics 5 November 13th, 2003 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.