0
我試圖使用userforum搜索特定關鍵字並選擇包含該信息的所有單元格,並將整行復制並粘貼到另一個表格中。到目前爲止,我只知道如何一次選擇一個單元格/行。這是我迄今爲止所擁有的。在vba中搜索並選擇多個單元格
Private Sub CommandButton1_Click()
Cells.Find(What:=searchbox1.Text, After:=Range("A1"), LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:= True, SearchFormat:=False).Activate
ActiveCell.EntireRow.Select
Selection.Copy
sheets(2).activate
看到我的回答[這個問題](http://stackoverflow.com/questions/38105313/deleting-rows-of-data-not-needed/38105606#38105606)....非常相似的概念 –