Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 394
Default Colour Uppercase Letters

Hi everyone,

I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.

Thanks in advance,
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Colour Uppercase Letters

Sub colorCaps()
Dim cell As Range
For Each cell In Selection

If cell.Text = UCase(cell.Text) Then
With cell
.Font.Bold = True
.Font.Color = vbRed
.Font.Name = "Tahoma 12"
End With
End If

Next


End Sub

"Paul Black" wrote:

Hi everyone,

I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.

Thanks in advance,
Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Colour Uppercase Letters

A little more description of your set up would help. Are these titles and
descriptions all in the same cell or is the title in one cell and the
description in the other? If they are all in one cell, then what separates
the title from the description... a line feed, a dash, something else? Also
what cells (rows/columns) are these things in?

--
Rick (MVP - Excel)


"Paul Black" wrote in message
...
Hi everyone,

I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.

Thanks in advance,
Paul


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Colour Uppercase Letters

On Sep 15, 3:29*pm, Patrick Molloy
wrote:
Sub colorCaps()
* * Dim cell As Range
* * For Each cell In Selection

* * * * If cell.Text = UCase(cell.Text) Then
* * * * * * With cell
* * * * * * * * .Font.Bold = True
* * * * * * * * .Font.Color = vbRed
* * * * * * * * .Font.Name = "Tahoma 12" * * * * * * * *
* * * * * * End With
* * * * End If

* * Next

End Sub



"Paul Black" wrote:
Hi everyone,


I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.


Thanks in advance,
Paul- Hide quoted text -


- Show quoted text -


That's GREAT!, thanks Patrick.
One last thing please, I would also like the cells with a single
capital letter to be blue, 27 and bold.

Thanks in advance,
Paul
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Colour Uppercase Letters


If cell.Text = UCase(cell.Text) Then
IF LEN(cell.text)=1 then
With cell
.Font.Bold = True
.Font.Color = vbBlue
.Font.Name = "Tahoma 27"
End With

else
With cell
.Font.Bold = True
.Font.Color = vbRed
.Font.Name = "Tahoma 12"
End With
end if
End If



" wrote:

On Sep 15, 3:29 pm, Patrick Molloy
wrote:
Sub colorCaps()
Dim cell As Range
For Each cell In Selection

If cell.Text = UCase(cell.Text) Then
With cell
.Font.Bold = True
.Font.Color = vbRed
.Font.Name = "Tahoma 12"
End With
End If

Next

End Sub



"Paul Black" wrote:
Hi everyone,


I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.


Thanks in advance,
Paul- Hide quoted text -


- Show quoted text -


That's GREAT!, thanks Patrick.
One last thing please, I would also like the cells with a single
capital letter to be blue, 27 and bold.

Thanks in advance,
Paul



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Colour Uppercase Letters

On Sep 15, 4:08*pm, Patrick Molloy
wrote:
* * * * *If cell.Text = UCase(cell.Text) Then
IF LEN(cell.text)=1 then
* * * * * * With cell
* * * * * * * * *.Font.Bold = True
* * * * * * * * *.Font.Color = vbBlue
* * * * * * * * *.Font.Name = "Tahoma 27" * * * * * * * *
* * * * * * *End With

else
* * * * * * *With cell
* * * * * * * * *.Font.Bold = True
* * * * * * * * *.Font.Color = vbRed
* * * * * * * * *.Font.Name = "Tahoma 12" * * * * * * * *
* * * * * * *End With
end if
* * * * *End If



" wrote:
On Sep 15, 3:29 pm, Patrick Molloy
wrote:
Sub colorCaps()
* * Dim cell As Range
* * For Each cell In Selection


* * * * If cell.Text = UCase(cell.Text) Then
* * * * * * With cell
* * * * * * * * .Font.Bold = True
* * * * * * * * .Font.Color = vbRed
* * * * * * * * .Font.Name = "Tahoma 12" * * * * * * * *
* * * * * * End With
* * * * End If


* * Next


End Sub


"Paul Black" wrote:
Hi everyone,


I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.


Thanks in advance,
Paul- Hide quoted text -


- Show quoted text -


That's GREAT!, thanks Patrick.
One last thing please, I would also like the cells with a single
capital letter to be blue, 27 and bold.


Thanks in advance,
Paul- Hide quoted text -


- Show quoted text -


Brilliant Patrick, works a treat, thanks very much.

Kind Regards,
Paul
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Colour Uppercase Letters

If you don't want to do it with code, you can use Conditional
Formatting. Choose Custom and enter

=EXACT(B1,UPPER(B1))

and set your format.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Tue, 15 Sep 2009 07:12:45 -0700 (PDT), Paul Black
wrote:

Hi everyone,

I have a list in column B.
There are many titles (Capitalized) followed by descriptions.
For the cells that are completely CAPITALIZED I would like to make the
colour red, the font Tahoma 12, and bold please.

Thanks in advance,
Paul

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract Uppercase Letters jnf40 Excel Programming 6 April 10th 08 09:59 PM
In Excel, can you change uppercase letters to lowercase mdh6245 New Users to Excel 2 September 4th 07 10:06 PM
excel: count uppercase letters in a cell harry bachrach Excel Worksheet Functions 13 July 13th 07 03:58 PM
Why do all my cells automatically turn into uppercase letters? Tomcat Excel Discussion (Misc queries) 2 October 3rd 05 12:09 AM
CHANGE WHOLE EXCEL worksheet TO UPPERCASE LETTERS? mineralgirl Excel Discussion (Misc queries) 4 September 3rd 05 01:29 AM


All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"