Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Date picker on a form?

What are some effecient ways to allow users to enter date
in the format of "mm/dd/yy" or "mm dd yy" on a text box
or form control?

I guess what concerns me the most are typo issues, or
circumstances when users enter typos or dates in the wrong
format.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Date picker on a form?

Hi Robert,

Am Wed, 14 Oct 2015 12:11:12 -0700 schrieb Robert Crandal:

What are some effecient ways to allow users to enter date
in the format of "mm/dd/yy" or "mm dd yy" on a text box
or form control?

I guess what concerns me the most are typo issues, or
circumstances when users enter typos or dates in the wrong
format.


a text box contains text. You have to check for typos and you have to
convert the text to a date if you want to calculate it.
I would prefer a Date and Time Picker or Calendar Control.


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Date picker on a form?

"Claus Busch" wrote:

I would prefer a Date and Time Picker or Calendar Control.


My system has no calendars or DTP controls. Downloading them
is not an option either.

Suppose you cannot use any of the above options. What solutions
come to mind?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Date picker on a form?

Hi Robert,

Am Thu, 15 Oct 2015 03:27:52 -0700 schrieb Robert Crandal:

Suppose you cannot use any of the above options. What solutions
come to mind?


please look again in the Office folder for OfficeXX\MSCAL.OCX
where XX is the version number.
If the users cannot write the date into the sheet use a text box and
write the value to the sheet with e.g.
Range("A1")=CDate(TextBox1.value)


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Date picker on a form?

"Claus Busch" wrote:

please look again in the Office folder for OfficeXX\MSCAL.OCX
where XX is the version number.


Okay, I will check later today if I can find "mscal.ocx" on our computer.

I don't understand why the calendar control isn't automatically available
in the Control toolbox. Even when I check "Additional Controls", it's
nowhere
to be found.

If I do find "mscal.ocx" in my file system, how do I install that into Excel
2013?


If the users cannot write the date into the sheet use a text box and
write the value to the sheet with e.g.
Range("A1")=CDate(TextBox1.value)


The user will be presented with a UserForm that contains textboxes
and other controls (or a Calendar control if I can find and install it).
Once a valid date is entered onto the form, I plan to save that date
value in a variable. The date will not be outputted onto the sheet at all.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Date picker on a form?

Hi Robert,

Am Thu, 15 Oct 2015 05:14:40 -0700 schrieb Robert Crandal:

If I do find "mscal.ocx" in my file system, how do I install that into Excel
2013?


if you have it on the PC you can register it with Windiows Button + R
"D:\Programe Files (x86)\Microsoft Office\Office12\MSCAL.OCX /regserver"

You have to modify your path for your system

The user will be presented with a UserForm that contains textboxes
and other controls (or a Calendar control if I can find and install it).
Once a valid date is entered onto the form, I plan to save that date
value in a variable. The date will not be outputted onto the sheet at all.


A public variable is only available as long as you run the application.


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Date picker on a form?

Hi Robert,

Am Thu, 15 Oct 2015 05:14:40 -0700 schrieb Robert Crandal:

Okay, I will check later today if I can find "mscal.ocx" on our computer.


please have a look:
https://msdn.microsoft.com/en-us/lib...4-5e729cae4d70
https://community.spiceworks.com/how...ft-access-2010
https://social.technet.microsoft.com...eitproprevious
https://social.msdn.microsoft.com/Fo...forum=exceldev
http://www.fontstuff.com/mailbag/qvba01.htm


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Date picker on a form?

hi,

Le 2015-10-15 08:14, Robert Crandal a écrit :
If I do find "mscal.ocx" in my file system, how do I install that into Excel
2013?


win7 32 bits or 64 bits ?

isabelle
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
Microsoft Date and Time Picker control for User Form Luke Excel Programming 2 September 29th 09 05:36 PM
Excel Form With Date Time Picker And Command Buttons Mike Excel Programming 0 November 25th 06 03:14 PM
How to create a calender picker on the form shirley_kee Excel Discussion (Misc queries) 1 June 23rd 06 12:55 PM
Using a Date time picker in a VBA form tysop Excel Programming 4 March 10th 06 02:20 PM
Form Date picker Rob Hargreaves Excel Programming 6 January 30th 05 05:56 PM


All times are GMT +1. The time now is 08:28 PM.

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

About Us

"It's about Microsoft Excel"