How to populate a date to a textbox by clicking on a calender image placed beside it?

excel_sat

New Member
Joined
Jun 10, 2015
Messages
22
Hi all,

I have 4 textboxes on my userform (Txtbox1,Txtbox2..)which have small calender images (img1.img2..) placed beside them.
What I need is... when i click on the calender image a calender should open up right below the image and when i select a date it should get populated in the textbox beside it.

I tried datepicker for this but it seems it is supported only in earlier versions of MS excel. I use MS excel 2007.

It would be good to have a function or sub for this as this might be used later in many pages of my project.

Could anyone please help me with this?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Thanks Stridhan for your reply.
:)
but Iam not sure if datepicker would work if the user uses excel 2010 or later ones. currently Iam developing in excel 2007 so it works fine in 2007.
If there is any way that datepicker can be embedded into the project and given to user that would also work for me.
 
Upvote 0
Hi.. I need help with this.

I have been searching since 3 days and couldn't find anything.. I want something other than datepicker.
If anybody could point me in the right direction it would be of great help
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

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