我在 IRow =... 行上不断收到“类型不匹配”错误 13
我想知道如何修复此代码?
我也
此致。
Sub MoveColumns()
Dim iRow As Long
Dim iCol As Long
Dim data_sheet1 As Worksheet
Dim target_Sheet As Worksheet
Worksheets.Add.Name = "Final Report"
Set data_sheet1 = ActiveWorkbook.Worksheets("InputPrep")
Set target_Sheet = ActiveWorkbook.Worksheets("Final Report")
iRow = Sheets(data_sheet1).UsedRange.Rows.Count
'Determine how many rows are in use