Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I defined a function in VBA that converts dates keyed in as YYYYMMDD t be displayed as DD/MM/YYYY using "DateValue" command as well as th Left, Mid and Right functions However, excel will only display the dates in the serial numbers. After the conversion into serial numbers (before 'end function'), i ha this: *ActiveCell.Select Selection.NumberFormat = "dd/mm/yyyy"* But somehow, it doesn't select that cell to convert into dd/mm/yyy format. I have to manually right click the cell and format it as date. Is there anyway to do this in VBA -- silves ----------------------------------------------------------------------- silvest's Profile: http://www.excelforum.com/member.php...fo&userid=1466 View this thread: http://www.excelforum.com/showthread.php?threadid=26728 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In-Cell Instructions | Excel Discussion (Misc queries) | |||
Template Instructions | Excel Worksheet Functions | |||
is there a way to do 4 instructions with one macro | Excel Discussion (Misc queries) | |||
How to print detailed instructions for all functions in Excel? | Excel Worksheet Functions | |||
How to print detailed instructions for all functions in Excel? | Excel Worksheet Functions |