ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Search on uppercase text (https://www.excelbanter.com/excel-discussion-misc-queries/60165-search-uppercase-text.html)

Nadiya

Search on uppercase text
 
Hello ~ formatting a very large spreadsheet - i need to search on text that
is in uppercase - and then bold that text. How do i search on that? Thanks!

JE McGimpsey

Search on uppercase text
 
One way, using a macro:

Public Sub BoldUpperCaseText()
Dim rTextCells As Range
Dim rCell As Range
On Error Resume Next 'in case no text constants
Set rTextCells = ActiveSheet.Cells.SpecialCells( _
xlCellTypeConstants, xlTextValues)
On Error GoTo 0
If Not rTextCells Is Nothing Then
For Each rCell In rTextCells
With rCell
If .Value = UCase(.Text) Then .Font.Bold = True
End With
Next rCell
End If
End Sub

If you're not familiar with macros, see

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article ,
Nadiya wrote:

Hello ~ formatting a very large spreadsheet - i need to search on text that
is in uppercase - and then bold that text. How do i search on that? Thanks!


vezerid

Search on uppercase text
 
You could also apply conditional formating.
Select all cells then, in Format|Conditional Formatting... Use
FormulaIs:
Supply the following formula:
=EXACT(A1, UPPER(A1))

HTH
Kostis Vezerides



All times are GMT +1. The time now is 03:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com