如何引用工作表(我不知道名称)名称来自单元格引用

如何引用工作表(我不知道名称)名称来自单元格引用
Sub New_Code

Dim exists as Boolean

For a = 1 To Worksheets.Count
    If Worksheets(a).Name = ThisWorkbook.Worksheets("Current").Range("V2") Then
        exists = True
    End If
Next a

If Not exists Then
    Worksheets.Add.Name = ThisWorkbook.Worksheets("Current").Range("V2")
End If
wk1.Sheets("Ab").Activate               wk1.Sheets("Ab").Range("A1:CK70").SpecialCells(xlCellTypeVisible).Copy            ThisWorkbook.Worksheets(ThisWorkbook.Worksheets("Current").Range("V2").Value).Activate                ThisWorkbook.Worksheets(ThisWorkbook.Worksheets("Current").Range("V2")).Range("A2").PasteSpecial xlPasteValuesAndNumberFormats

答案1

Dim sh 作为工作表,shNam 作为字符串 shNam = ActiveSheet.range("A1").Value

    Sheets(shNam).Activate

相关内容