Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Multiple cells

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default Multiple cells

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
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
Select multiple adjacent cells of multiple cells without selecting sjsjsjsjsjs New Users to Excel 11 December 24th 09 01:09 AM
Select multiple adjacent cells of multiple cells without selecting sjsjsjsjsjs Excel Worksheet Functions 7 December 23rd 09 08:54 PM
macro copy/paste data from multiple cells to multiple cells Diana Excel Discussion (Misc queries) 0 July 10th 06 09:24 PM
Date and time stamping multiple cells for multiple entries. Gerald Excel Worksheet Functions 1 May 9th 06 01:45 PM
make multiple cells in 1 worksheet equal multiple cells in another riley454 Excel Worksheet Functions 1 January 19th 06 03:00 PM


All times are GMT +1. The time now is 08:49 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"