假设它在 A2、A4、A5、A6 中找到一些特定文本,如“sa”,我需要分别在 B2、B4、B5、B6 中复制“sohail”,就像这样......
ImageName PhotographerName
pirf_20120523_sa0001.jpg sohail
pirf_20120523_ml0001.jpg manav
pirf_20120523_sa0001.jpg sohail
pirf_20120523_sa0001.jpg sohail
pirf_20120523_sa0001.jpg sohail
pirf_20120529_sh0005.jpg shirazi
pirf_20120523_ml0001.jpg manav
pirf_20120529_sh0005.jpg shirazi
我试图检索它找到文本的地址...
Sub FindinTextInEachCell()
Dim rngX As Range
Set rngX = Worksheets("Sheet1").Range("A1:A10").Find("sa", lookat:=xlPart)
If Not rngX Is Nothing Then
MsgBox "Found at " & rngX.Address
End If
End Sub