How can I add a DateTimePicker to a User Form using VBA code.
Similar to adding a Label –
Dim TempForm As Object
Dim NewLabel as MSForms.Label
Set NewLabel = TempForm.Designer.Controls.Add("Forms.label.1")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, I have got the answer from this question in the sidharth
Formatting MM/DD/YYYY dates in textbox in VBA