Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I have a sheet 1 with a combo box and a blank field. When something is selected from the combo box a date gets populated in the blank field. The date is custom formatted as mmm-yyyy. On sheet 2 I have a table with the options in the drop down box and a date next to them. When a selection is done, the code does a VLOOKUP and populates the data in Sheet 1 in the blank field. Dates are also mmm-yyyy in the Sheet 2. The problem is, say the date in Sheet 2 is 01/12/2010 displayed as Dec-2010. When it is put into sheet w, it flips it to 12/01/2010 so says Jan-2010. Any idea why this is happening please? Code Below - VersionRange is a named Range ($C$4:$F$56) in Sheet 2 Dim boxdate Dim VerValue Dim VerRange Dim ws As Worksheet Set ws = Worksheets("Sheet 2") VerValue = Combo1.Text VerRange = ws.Range("VersionRange") If VerValue = "" Then boxdate= "" Else: boxdate = Application.WorksheetFunction.VLookup(VerValue, VerRange, 2) End If Range("A19").Select ActiveCell.FormulaR1C1 = boxdate Thank you Rich |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing the date format on the date table in a chart | Charts and Charting in Excel | |||
Excel 2003 - Changing Date Format | Excel Discussion (Misc queries) | |||
Excel 2002 - Date format keeps changing | Excel Discussion (Misc queries) | |||
Changing to date format | Excel Discussion (Misc queries) | |||
excel is changing date format | Setting up and Configuration of Excel |