Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet - lets call it listSheet - that contains a list of names
in A2:A25, and a list of other text in B2:B50. Running my code on active sheet, how do I accomplish: For i = 2 to lstRow If cells (i,1).value is found in listSheet A2:A25 AND cells(i,2).value is found in listSheet B2:B50 Then cells (i,1) through cells(i,6).font.bold = true next i Thanks in advance! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Not Worksheets("listSheet").Range("A2:A25").Find (Cells(i, 1)) Is Nothing
_ And Not Worksheets("listSheet").Range("B2:B50").Find (Cells(i, 1)) Is Nothing _ Then Cells(i, 1).Resize(, 6).Font.Bold = True -- Vasant "GettingThere" wrote in message ... I have a worksheet - lets call it listSheet - that contains a list of names in A2:A25, and a list of other text in B2:B50. Running my code on active sheet, how do I accomplish: For i = 2 to lstRow If cells (i,1).value is found in listSheet A2:A25 AND cells(i,2).value is found in listSheet B2:B50 Then cells (i,1) through cells(i,6).font.bold = true next i Thanks in advance! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Vasant,
That is exactly what I was looking for. Thank you very much! "Vasant Nanavati" wrote: If Not Worksheets("listSheet").Range("A2:A25").Find (Cells(i, 1)) Is Nothing _ And Not Worksheets("listSheet").Range("B2:B50").Find (Cells(i, 1)) Is Nothing _ Then Cells(i, 1).Resize(, 6).Font.Bold = True -- Vasant "GettingThere" wrote in message ... I have a worksheet - lets call it listSheet - that contains a list of names in A2:A25, and a list of other text in B2:B50. Running my code on active sheet, how do I accomplish: For i = 2 to lstRow If cells (i,1).value is found in listSheet A2:A25 AND cells(i,2).value is found in listSheet B2:B50 Then cells (i,1) through cells(i,6).font.bold = true next i Thanks in advance! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're welcome!
-- Vasant "GettingThere" wrote in message ... Vasant, That is exactly what I was looking for. Thank you very much! "Vasant Nanavati" wrote: If Not Worksheets("listSheet").Range("A2:A25").Find (Cells(i, 1)) Is Nothing _ And Not Worksheets("listSheet").Range("B2:B50").Find (Cells(i, 1)) Is Nothing _ Then Cells(i, 1).Resize(, 6).Font.Bold = True -- Vasant "GettingThere" wrote in message ... I have a worksheet - lets call it listSheet - that contains a list of names in A2:A25, and a list of other text in B2:B50. Running my code on active sheet, how do I accomplish: For i = 2 to lstRow If cells (i,1).value is found in listSheet A2:A25 AND cells(i,2).value is found in listSheet B2:B50 Then cells (i,1) through cells(i,6).font.bold = true next i Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
right syntax | Excel Worksheet Functions | |||
SQL syntax | Excel Worksheet Functions | |||
Syntax Help | Excel Worksheet Functions | |||
Syntax | Excel Programming | |||
Syntax | Excel Programming |