Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date Formating using VB Vlookup

I am using the following code
UserForm3.TextBox8 = Application.WorksheetFunction.VLookup(Ext,
Columns("A:F"), 6, False)
It is bringing in the date but the date is in the number format. Ex
37396 = 5/20/02.

I have TextBox8.Value = Format(TextBox8.Value, "mm/dd/yy") under the
actual field on the form, but it doesn't seem to work.

Can someone please help with this formating issue.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Date Formating using VB Vlookup

UserForm3.TextBox8 = Format(Application.WorksheetFunction.VLookup( _
Ext,Columns("A:F"), 6, False),"mm/dd/yy")

--
Regards,
Tom Ogilvy


"Samantha" wrote in message
om...
I am using the following code
UserForm3.TextBox8 = Application.WorksheetFunction.VLookup(Ext,
Columns("A:F"), 6, False)
It is bringing in the date but the date is in the number format. Ex
37396 = 5/20/02.

I have TextBox8.Value = Format(TextBox8.Value, "mm/dd/yy") under the
actual field on the form, but it doesn't seem to work.

Can someone please help with this formating issue.



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
Cell Formating in VLookup formula Mike Lindsay Excel Worksheet Functions 3 May 4th 06 02:58 AM
Automatic cell Formating ina VLookup formula Mike Excel Worksheet Functions 3 May 3rd 06 03:43 PM
VLOOKUP being messed up by formating? Help.. Dark_Templar Excel Discussion (Misc queries) 3 April 13th 06 06:26 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Date formating Jake Marx Excel Programming 0 September 10th 03 09:02 PM


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