Date and time picker to run a macro

rrporto5

New Member
Joined
Oct 30, 2012
Messages
4
Hello all,
I am a newbie and in need for some help related to this.</SPAN>
I am using a DTpicker pointed to linkedCell “L10”.</SPAN>
I want to run a macro every time a user selects any date at all ... and therefore changing the cell “L10”.</SPAN>

I have found in other threads people were using this code:</SPAN>

Private Sub Worksheet_Change(ByVal Target As Range)</SPAN>
If Not Intersect(Target, Range("L10")) Is Nothing Then</SPAN>
MsgBox "A1 value is changing"</SPAN>
End If</SPAN>
End Sub</SPAN>

The thing is: this code only works when the user actually types something ... It has no effect when the cell is changed by the DTpicker.</SPAN>

Any ideas? </SPAN>
Please....</SPAN>

Thx a lot,</SPAN>
Rafael</SPAN>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,216,094
Messages
6,128,785
Members
449,468
Latest member
AGreen17

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