Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Input for TextBox having a mask for date or $ amount


I have a form that I would like to make some TextBox's to be formatted
for dates (having a mask for m/d/yy), and then a couple for dollar
amounts $X.XX. Can someone please tell how this is done (any where it
needs to be put if it is a specific placement).

I've tried:

CRF_Form.TextBox1.Value = Format(Date, "m/d/yy")

I've seen other people trying this (it doesn't change the data when
entering in the data though).

Thanks.


--
jlroper
------------------------------------------------------------------------
jlroper's Profile: http://www.excelforum.com/member.php...o&userid=26709
View this thread: http://www.excelforum.com/showthread...hreadid=401396

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Input for TextBox having a mask for date or $ amount

Excel's textbox doesn't support this kind of masking.

You can apply the format when you leave the textbox, though--like with the code
you showed.

But for the date stuff...

You might want to take a look at Ron de Bruin's site for some tips/code/free
calendar control:
http://www.rondebruin.nl/calendar.htm

jlroper wrote:

I have a form that I would like to make some TextBox's to be formatted
for dates (having a mask for m/d/yy), and then a couple for dollar
amounts $X.XX. Can someone please tell how this is done (any where it
needs to be put if it is a specific placement).

I've tried:

CRF_Form.TextBox1.Value = Format(Date, "m/d/yy")

I've seen other people trying this (it doesn't change the data when
entering in the data though).

Thanks.

--
jlroper
------------------------------------------------------------------------
jlroper's Profile: http://www.excelforum.com/member.php...o&userid=26709
View this thread: http://www.excelforum.com/showthread...hreadid=401396


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Input for TextBox having a mask for date or $ amount

http://www.fontstuff.com/vba/

calendar popup to assure date format is best way to go

"jlroper" wrote:


I have a form that I would like to make some TextBox's to be formatted
for dates (having a mask for m/d/yy), and then a couple for dollar
amounts $X.XX. Can someone please tell how this is done (any where it
needs to be put if it is a specific placement).

I've tried:

CRF_Form.TextBox1.Value = Format(Date, "m/d/yy")

I've seen other people trying this (it doesn't change the data when
entering in the data though).

Thanks.


--
jlroper
------------------------------------------------------------------------
jlroper's Profile: http://www.excelforum.com/member.php...o&userid=26709
View this thread: http://www.excelforum.com/showthread...hreadid=401396


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 input mask dagibbie Excel Discussion (Misc queries) 1 October 29th 08 04:08 PM
excel input mask for textbox DaveF[_2_] Excel Discussion (Misc queries) 3 February 20th 08 04:25 PM
Need A date Mask format for a Textbox on UserForm [email protected] Excel Discussion (Misc queries) 2 November 4th 07 03:27 AM
Input mask for userform textbox Axehandler Excel Programming 1 November 6th 04 04:56 AM
Input mask for date Peter[_35_] Excel Programming 1 January 30th 04 10:53 PM


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