Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a column containing dates but some begin with a ' which I need to
remove programatically.... any ideas. I already have the for next loop set up but unable to find the correct method for detecting the ' and also removing it to leave the date entry intact. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub tic_killer()
Set rr = ActiveSheet.UsedRange.SpecialCells(xlCellTypeConst ants, xlTextValues) For Each r In rr If r.PrefixCharacter = "'" Then r.Value = r.Value End If Next End Sub -- Gary''s Student - gsnu200733 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This worked a treat, many thanks for your help.....
"Gary''s Student" wrote: Sub tic_killer() Set rr = ActiveSheet.UsedRange.SpecialCells(xlCellTypeConst ants, xlTextValues) For Each r In rr If r.PrefixCharacter = "'" Then r.Value = r.Value End If Next End Sub -- Gary''s Student - gsnu200733 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Range("A1") = Range("A1")*1 -- Regards Roger Govier "Givnik" wrote in message ... I have a column containing dates but some begin with a ' which I need to remove programatically.... any ideas. I already have the for next loop set up but unable to find the correct method for detecting the ' and also removing it to leave the date entry intact. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Roger, Many thanks I did try this but got the following error 'Type
Mismatch', not sure but can you multiply a date? anyway I do appreciate your response... "Roger Govier" wrote: Hi Range("A1") = Range("A1")*1 -- Regards Roger Govier "Givnik" wrote in message ... I have a column containing dates but some begin with a ' which I need to remove programatically.... any ideas. I already have the for next loop set up but unable to find the correct method for detecting the ' and also removing it to leave the date entry intact. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to keep zeros at the begining of a number | Excel Worksheet Functions | |||
how do i get a list of only the begining of weeks in excel? | Excel Worksheet Functions | |||
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... | Excel Programming | |||
option to keep zero at begining of number | Excel Discussion (Misc queries) | |||
how to add symbol automatically at begining and end | Excel Discussion (Misc queries) |