Hi,
I am working on a data about thousands of row that a dates in different format, can it be possible to find all the dates from a range and convert them into a particular format.
Hi,
I am working on a data about thousands of row that a dates in different format, can it be possible to find all the dates from a range and convert them into a particular format.
hi try dis code,
Hope it will workPlease Login or Register to view this content.
Thanks
A
thanks a lot for the reply this is working,
but it would be greae ful if you can give some light about the using of offset function with date function......
because i wnat to chnage the format of dates put values against that dates from the range.
i prepared a code with the help of above mentioned code but it is not running correctly it takes the dates as the cell value
Sub finddates()
Dim ccell As Range
Dim bcell As String
Dim dcell As String
Dim ap As String
bcell = CStr(InputBox("enter holidays"))
dcell = CStr(InputBox("previous day"))
For Each ccell In Range("a1:a50")
If IsDate(ccell) = True Then
'ccell.Value = Format(ccell, "DD--MM--YYYY")
ap = "=networkdays" & "(" & ccell & "," & dcell & "," & bcell & ")"
ccell.Offset(0, 2) = ap
End If
Next ccell
End Sub
please suggest
Last edited by himanshug; 08-29-2012 at 03:53 PM. Reason: wokred on code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks