Calendar pop up

jc83ph

New Member
Joined
Oct 9, 2014
Messages
31
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
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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.

 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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
Back
Top