Calendar pop up

jc83ph

New Member
Joined
Oct 9, 2014
Messages
6
Hi,

I need the help for this code. I want the additional code for this file without the press close button mean like an mouseover then select date.

I want only when the mouse move on the range automatic show or appearing the calendar form without double click. Then when the mouse move another cell not in the range the calendar form not display or disappearing.

here the code.

VBA Code:
Private Sub worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1", "C1", "G1")) Is Nothing Then Calendar.Show
End Sub

Screen Shot 2020-09-16 at 11.23.25 AM.JPG
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
L

Legacy 456155

Guest
For ranges, Excel does not provide native mouse events beyond double clicking. Therefore, you would need to roll out your own. AFAIK, there is no efficient way to do this, but you must resort to various hacks such as using activeX conrols, the hyperlink function, or a timer along with RangeFromPoint. Working with a mouse exit pseudo event is more problematic because you may have to account for multiple ways of exiting a range. There are some examples in the following post.

 

Watch MrExcel Video

Forum statistics

Threads
1,128,052
Messages
5,628,315
Members
416,311
Latest member
S991102

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top