| 
    
     |  | ▼Kein さん: 検索に興味があるので質問させてください
 横から失礼してすみません""test""の部分を
 インプットboxを使うにはどう書き込めばいいのですか?
 よろしくお願いします。
 Sub test()
 Dim i As Variant
 i = Application.InputBox("検索文字列を入力してください。", Type:=2)
 
 
 >例えば A列の最終入力行 までを基準として、A:F列 までで "test" の文字を
 >検索し、無ければ行全体を削除する。ということがしたいなら・・
 >
 >  Application.ScreenUpdating = False
 >  With Range("A1", Range("A65536").End(xlUp)).Offset(, 6)
 >   .Formula = "=MATCH(""test"",$A1:$F1,0)"
 >   .Copy
 >   .PasteSpecial xlPasteValues
 >   .CurrentRegion.Sort Key1:=Columns(7), Order1:=xlAscending, _
 >   Header:=xlGuess, Orientation:=xlSortColumns
 >   If WorksheetFunction.Count(.Cells) < .Count Then
 >     .SpecialCells(2, 16).EntireRow.ClearContents
 >   End If
 >   .ClearContents
 >  End With
 >  Range("A1").Select
 >  With Application
 >   .CutCopyMode = False
 >   .ScreenUpdating = True
 >  End With
 >
 >というコードで、高速な処理ができると思います。
 
 |  |