Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Date Picker Control

I have had trouble utilizing the Calendar control when the end user does not
have Access installed on their PC. Does the Date Picker control have the same
limitation?It's difficult to test since I do have Access in my Office bundle.

Thanks,

Sam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Date Picker Control

DatePicker comes along with Visual Studio; which again may not be in the user
machine.

If this post helps click Yes
---------------
Jacob Skaria


"Sam" wrote:

I have had trouble utilizing the Calendar control when the end user does not
have Access installed on their PC. Does the Date Picker control have the same
limitation?It's difficult to test since I do have Access in my Office bundle.

Thanks,

Sam

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Date Picker Control

Sam, you can try a custom date/time picker such as below. Try this out using
a textbox control in a userform.

Private Sub UserForm_Activate()
Me.TextBox1 = Format(Now, "dd-mmm-yyyy hh:mm")
End Sub

Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal
Shift As Integer)
'Date and Time Picker Use down/up arrow to change date/time.
Dim intPos As Integer, strType As String
If KeyCode = 38 Or KeyCode = 40 Then
intPos = Me.TextBox1.SelStart
strType = Application.Lookup(intPos, _
Array(0, 3, 7, 12, 15), Array("d", "m", "yyyy", "h", "n"))
Me.TextBox1 = Format(DateAdd(strType, _
(39 - KeyCode), TextBox1), "dd-mmm-yyyy hh:mm")
KeyCode = 0
Me.TextBox1.SelStart = intPos
End If
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Sam" wrote:

I have had trouble utilizing the Calendar control when the end user does not
have Access installed on their PC. Does the Date Picker control have the same
limitation?It's difficult to test since I do have Access in my Office bundle.

Thanks,

Sam

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Date Picker Control

Hi Sam,

I had the same problem and solved as follows:

-You need to find MSCOMCT2.OCX file
-Copy it under Windows\System32 if it is not already there
-Manually register it by Run under Start menu, writing:
regsvr32 MSCOMCT2.OCX and click OK
-You should see the message something like "...successfuly registered"

When you open the Excel next time you should be able to find DatePicker
controls under Additional Controls.

See if this helps.

Rgds,
Lemi

"Sam" wrote in message
...
I have had trouble utilizing the Calendar control when the end user does
not
have Access installed on their PC. Does the Date Picker control have the
same
limitation?It's difficult to test since I do have Access in my Office
bundle.

Thanks,

Sam



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
Date picker control Ricardo F Excel Discussion (Misc queries) 2 October 20th 08 03:44 PM
Required Date picker control Vinod[_2_] Excel Discussion (Misc queries) 2 September 20th 08 03:49 PM
Date picker control GeraldM Excel Programming 2 February 28th 07 07:05 AM
Force use of a date picker control JT Excel Programming 0 November 7th 06 09:16 PM
date time picker control MacroCharlie Excel Programming 0 November 16th 05 04:01 PM


All times are GMT +1. The time now is 02:26 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"