Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / May 2005

Tip: Looking for answers? Try searching our database.

Input Masks in Excel?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PattiP - 24 May 2005 18:58 GMT
Does Excel have input masks, similar to Access?  I would like the user to
enter a date field but not have to insert the "/" marks.  Example:  enter
032405 and it would show up as 03/24/05.  Thanks!
Signature

Patti

Bob Phillips - 24 May 2005 19:04 GMT
No, it's all manual.

Signature

HTH

Bob Phillips

> Does Excel have input masks, similar to Access?  I would like the user to
> enter a date field but not have to insert the "/" marks.  Example:  enter
> 032405 and it would show up as 03/24/05.  Thanks!
PattiP - 24 May 2005 19:17 GMT
Thanks, Bob.  I thought thats what the anwer might be...

> No, it's all manual.
>
> > Does Excel have input masks, similar to Access?  I would like the user to
> > enter a date field but not have to insert the "/" marks.  Example:  enter
> > 032405 and it would show up as 03/24/05.  Thanks!
PattiP - 24 May 2005 19:20 GMT
Is there a way to convert the entry, i.e. 032405, and have it show up in
another cell in date format? Some kind of VB code?

> No, it's all manual.
>
> > Does Excel have input masks, similar to Access?  I would like the user to
> > enter a date field but not have to insert the "/" marks.  Example:  enter
> > 032405 and it would show up as 03/24/05.  Thanks!
Bob Phillips - 24 May 2005 19:33 GMT
If you have got a lot, take a look at
http://www.xldynamic.com/source/xld.QDEDownload.html

Signature

HTH

Bob Phillips

> Is there a way to convert the entry, i.e. 032405, and have it show up in
> another cell in date format? Some kind of VB code?
[quoted text clipped - 4 lines]
> > > enter a date field but not have to insert the "/" marks.  Example:  enter
> > > 032405 and it would show up as 03/24/05.  Thanks!
Bob Phillips - 24 May 2005 20:34 GMT
or try this

Private Sub Worksheet_Change(ByVal Target As Range)

   On Error GoTo ws_exit:
   Application.EnableEvents = False
   If Not Intersect(Target, Me.Range("A1:H10")) Is Nothing Then
       With Target
           .Value = DateSerial(Right(.Value, 2), Left(.Value, Len(.Value) -
4), Mid(.Value, Len(.Value) - 3, 2))
       End With
   End If

ws_exit:
   Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.

Signature

HTH

Bob Phillips

> If you have got a lot, take a look at
> http://www.xldynamic.com/source/xld.QDEDownload.html
[quoted text clipped - 9 lines]
> enter
> > > > 032405 and it would show up as 03/24/05.  Thanks!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.