Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Can a TextBox on a user form activate a popup calander for dat

Thank you for the reply Rub. I have just one problem, I don't know how to put
a calander object on my form. Can you advise me please

"rub" wrote:

put a calendar object on your form called calSetDate and a command
button call cmdSetDate
when form is opened use the following commands

cmdSetDate.Visible = False
cmdSetDate.Enabled = False
calSetDate.Visible = False
calSetDate.Enabled = False
use a double click method on the date field and the following cobe
calSetDate.Visible = True
calSetDate.Enabled = True
cmdSetDate.Visible = true
cmdSetDate.Enabled = true
select a date and then click on the command button

If IsNull(calSetDate.Value) Then

Else
txtDate.SetFocus
txtDate.Text = calSetDate.Value
end if
lstEmpName.Visible = True
lstEmpName.Enabled = True
calSetDate.Visible = False
calSetDate.Enabled = False
cmdSetDate.Visible = False
cmdSetDate.Enabled = False


JohannM wrote:
I would like a pop up calander to appear for a date selection when I activate
the "Date" field on my user form. What is the best way to do this please?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get a User Form to activate off a drop down menu Rcarper Excel Discussion (Misc queries) 2 October 2nd 09 02:04 PM
textbox on user form Mike Excel Programming 3 December 2nd 05 04:43 PM
User Form in VB = TextBox Kel Excel Discussion (Misc queries) 1 August 11th 05 12:26 AM
Activate user form upon condition fishergomz Excel Programming 2 May 6th 04 03:36 PM
Activate Excel worksheet after showing a user form ? KajBre Excel Programming 5 January 24th 04 03:56 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"