Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to perform a search on each row in a single column of
names. If the name matches a specified name, I would like to insert text into the the cell to the right of the cell with the matching name. How do I do this? Do I use the Count property? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Nikita,
Try this, adjust dd and My text and data range. Sub XXX() Dim data As Range Dim cell As Range Set data = Range("f1:f10") For Each cell In data If cell.Value = "dd" Then cell.Offset(0, 1).Value = "My text" End If Next End Sub HTH Regards, Howard "nikita" wrote in message ups.com... I would like to perform a search on each row in a single column of names. If the name matches a specified name, I would like to insert text into the the cell to the right of the cell with the matching name. How do I do this? Do I use the Count property? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select multiple adjacent cells of multiple cells without selecting | New Users to Excel | |||
Select multiple adjacent cells of multiple cells without selecting | Excel Worksheet Functions | |||
macro copy/paste data from multiple cells to multiple cells | Excel Discussion (Misc queries) | |||
Date and time stamping multiple cells for multiple entries. | Excel Worksheet Functions | |||
make multiple cells in 1 worksheet equal multiple cells in another | Excel Worksheet Functions |