I will admit this here, I am unfamiliar with the VBA language.
I am trying to write a Macro for an MS Excel file that searches through one sheet, then posts the results in another sheet.
我通过Chester Tugwell找到了一个有关YouP的录像,该录像在Macro的文字中找到了预先确定的措辞。
这是我试图修改宏观文字之后的守则。
Sub SearchForWord()
Dim SearchCol As Range
Dim SearchWord As Range
Dim PasteCell As Range
Set SearchCol = Sheet2.Range("D7:D100")
For Each Status In StatusCol
If Sheet1.Range("C4") = "" Then
Set PasteCell = Sheet1.Range("C4")
Else
Set PasteCell = Sheet1.Range("C4").End(xlDown).Offset(1, 0)
End If
If Status = Sheet1.Range("C3") Then Status.Offset(1,2).Resize(1, 3).Copy PasteCell
Next Status
End Sub
我试图做到的是,我用一个囚室里的一段话,即Sheet 1中的C3,然后用一个顿的报章,在预定的栏目中搜索该词的所有发生情况,然后把该囚室和排在表1中的下2个囚室。