PC Review


Reply
Thread Tools Rate Thread

adding verbiage to the end of a cell

 
 
jjnotme
Guest
Posts: n/a
 
      28th Aug 2010
I want to be able to add words to the end of a cell. For instance if
the cell contains "total for NY", I want to be able to add " < 10,000"
at the end. The cell would need to say "total for NY < 10,000". Then
I want the whole row highlighted in yellow.
Can someone please help me with this?
Thank you
CP
 
Reply With Quote
 
 
 
 
rumkus@hotmail.com
Guest
Posts: n/a
 
      28th Aug 2010
Below sub will check F column for "total for NY" when found it will
change it to "total for NY < 10,000".
And color the row between A and K columns.
Please make necessary changes to your needs.
Rgds


Sub color()
Dim rng As Range
Dim i As Range
With Worksheets("Sheet1")
Set rng = .Range("F2", .Range("F" & Rows.Count).End(xlUp))
For Each i In rng
If i.Value = "total for NY" Then
i.Value = "total for NY < 10,000"
Range("a" & i.Row & ":" & "k" & i.Row).Interior.ColorIndex = 6
End If
Next i
End With
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inputbox Verbiage Ron Microsoft Excel Programming 3 17th Apr 2009 06:37 PM
How do I automatically update Boilerplate verbiage? =?Utf-8?B?RGF2ZSBNZWRk?= Microsoft Word Document Management 4 28th Nov 2006 04:49 AM
How do I add verbiage to a cell that has a hyperlink already =?Utf-8?B?Ym93bGVnZ2VkNjQ=?= Microsoft Excel Misc 3 2nd Feb 2006 09:00 PM
Compare Text in 2 worksheets where verbiage is slightly different =?Utf-8?B?YW5uZW0=?= Microsoft Excel Worksheet Functions 2 15th Aug 2005 11:19 PM
verbiage printng only 75% on document debbie Windows XP Print / Fax 0 8th Aug 2003 02:42 AM


Features
 

Advertising
 

Newsgroups
 


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