Ansari, Thank you for taking the time to assist me. When I look at your code I can see how simple it is--it works great! When I get more familiar with VBA syntax I hope to be able to figure this out myself. Thanks again for you kindness in helping me. Preston
Date: Thu, 29 Mar 2012 09:22:13 +0530 Subject: Re: $$Excel-Macros$$ Test to see if cell value starts with a "D" From: noorain.ans...@gmail.com To: excel-macros@googlegroups.com Dear Preston, Try it Sub color_dname() Dim rng As Range Set rng = Sheet1.Range("A1:A" & Sheet1.Cells(Rows.Count, "A").End(xlUp).Row) For Each cell In rng If VBA.Left(cell, 1) = "D" Then cell.Interior.Color = vbGreen End If Next End Sub and see attached sheet. On Wed, Mar 28, 2012 at 11:22 PM, Preston Moore <walpa...@hotmail.com> wrote: This a probably a simple question, but I am new to VBA... How do I test to find cells that contain text starting with the letter "D"? Thank you Pres -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- Thanks & regards, Noorain Ansari http://noorainansari.com/ http://excelmacroworld.blogspot.com/ -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com