Skip one worksheet and process the remaining worksheets

前端 未结 2 1046
迷失自我
迷失自我 2020-12-22 01:16

I was working with a vba code which remove all the rows which dont have word \"Statement No\" in it from all available worksheets. But anyhow i want it to skip the first wor

2条回答
  •  孤城傲影
    2020-12-22 01:43

    If the sheet name is always going to be the same then you could use this ..

    If sh.Name <> "Sheet 1" Then ' Or whatever the sheet is called
       .. more code
    End If
    

提交回复
热议问题