VBA

【VBA】入力された文字列でフィルタをかける

VBA

シンプルだけど使いそうだからメモ。以下のような場合、B1セルに入れられた材料名に対してフィルタをかけたい。 Sub make_filter() Dim str_target As String Dim int_target As Integer str_target = Range("B1").Value Selection.AutoFilter int_target = …