我想在我的activeworkbook中选择一个工作表,只有一个,它以EXP开头,我是怎么做到的,我正在尝试下面的内容。
ActiveWorkbook.Worksheets("EXP*").Select
答案 0 :(得分:3)
循环并找到:
Dim sheet As Worksheet
For Each sheet In ActiveWorkbook.Sheets
If (sheet.Name Like "EXP*") Then
sheet.Select
Exit For
End If
Next