Thread
:
How can I search for words in all caps in Excel?
View Single Post
#
12
Posted to microsoft.public.excel.misc
NoelH
external usenet poster
Posts: 10
How can I search for words in all caps in Excel?
Hi Don
Thanks for the help
Yes this too worked.
Noel
"Don Guillett" wrote:
If cell.Value = UCase(cell.Value) Then
cell.offset(,1)=1
cell.Font.ColorIndex = 3 'make font color = red
End If
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"NoelH" wrote in message
...
Hi Jason
I have found this old script and yes it works for me, However is it
possible
to have an addition part so that in addition to the Red colour, addtional
text text is added to another column.
Eg say the selection is in Column A, if the CAPS word is found in cell A2
then B2 has '1' placed in it. This would allow a filter to be setup on Col
B.
Many thanks for any help
"Jason Morin" wrote:
Select your data and run this macro:
Sub OnlyUpper()
Dim cell As Range
For Each cell In Selection
If cell.Value = UCase(cell.Value) Then
cell.Font.ColorIndex = 3 'make font color = red
End If
Next
End Sub
---
HTH
Jason
Atlanta, GA
"Nexan" wrote:
As part of a macro, I'd like to be able to identify and re-format only
cells
containing words in all caps. Is that doable?
Thanks!
Reply With Quote
NoelH
View Public Profile
Find all posts by NoelH