excell运行VBA后弹出方法和数据成员未找到,求解决
Sub添加工作表()DimShAsWorksheet,iAsLongSheets.AddAfter:=Sheets(Sheets.Count),Count:=Worksh...
Sub 添加工作表() Dim Sh As Worksheet, i As Long Sheets.Add After:=Sheets(Sheets.Count), Count:=Worksheets(1).Range("A" & Rows.Count).End(xlUp).Row - 1 For i = 2 To 6 Worksheets(i).Name = Worksheets(1).Cells(i, 1).Value Sheets("Sheet2").Copy After:=Sheets(Sheets.i) Worksheets(i).Range("B3").Value = Worksheets(1).Cells(i, 1).Value Worksheets(i).Range("D3").Value = Worksheets(1).Cells(i, 2).Value Worksheets(i).Range("B4").Value = Worksheets(1).Cells(i, 3).Value Worksheets(i).Range("D4").Value = Worksheets(1).Cells(i, 4).Value Worksheets(i).Range("B13").Value = Worksheets(1).Cells(i, 5).Value NextEnd Sub
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询