excel vba运行下标越界
SubGetDatas()DimlLastRowAsLonglLastRow=Sheets("Database").UsedRange.Row.CountRange("B...
Sub GetDatas() Dim lLastRow As Long lLastRow = Sheets("Database").UsedRange.Row.Count Range("B5:G65536").Clear Sheets("Database").Range("A1:F" & lLastRow).AdvancedFilter _ Action:=xlFilterCopy, _ CriteriaRange:=Range("B2:C3"), _ CopyToRange:=Range("B5"), _ Unique:=False End Sub
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询