Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to be able to search column G in a spreadsheet and where there
is a full stop in the text colour the text after the full stop in blue. Strang request, I know! Unfortunately MS Access does not allow more than one type of formatting in the field and I am not familiar with Excel programming Thanks in advance David |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ColorText()
Dim RNG As Range Dim ipos As Integer For Each RNG In Range("G1:G100") RNG.Find ".", LookIn:=xlValues ipos = InStr(1, RNG, ".", vbTextCompare) If ipos 0 Then RNG.Characters(ipos + 1, Len(RNG) - ipos + 1).Font.ColorIndex = 5 End If Next RNG End Sub Chrissy. David Mitchell wrote I need to be able to search column G in a spreadsheet and where there is a full stop in the text colour the text after the full stop in blue. Strang request, I know! Unfortunately MS Access does not allow more than one type of formatting in the field and I am not familiar with Excel programming Thanks in advance David |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks very much for your quick response, Chrissy. Works perfectly!
David "Chrissy" wrote in message ... Sub ColorText() Dim RNG As Range Dim ipos As Integer For Each RNG In Range("G1:G100") RNG.Find ".", LookIn:=xlValues ipos = InStr(1, RNG, ".", vbTextCompare) If ipos 0 Then RNG.Characters(ipos + 1, Len(RNG) - ipos + 1).Font.ColorIndex = 5 End If Next RNG End Sub Chrissy. David Mitchell wrote I need to be able to search column G in a spreadsheet and where there is a full stop in the text colour the text after the full stop in blue. Strang request, I know! Unfortunately MS Access does not allow more than one type of formatting in the field and I am not familiar with Excel programming Thanks in advance David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 change colour when "find" function is used | Excel Discussion (Misc queries) | |||
Find and Replace causing a "Text" cell to become a custom date--wh | Excel Discussion (Misc queries) | |||
"Disk is Full" add-on question to "Can't reset last cell" post tod | Excel Discussion (Misc queries) | |||
How do I find "Stop Recording toolbar" of macros? | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) |