I use Array function to group four sheets Private, Commercial, Other and APD together. Then I want to loop through this array but got an error message about code:
The error message is: Run-time error ‘424’ Object required.
Any ideas will be welcome.
Dennis
Code:
For Each wsSheet in SheetArray.
The error message is: Run-time error ‘424’ Object required.
Any ideas will be welcome.
Dennis
Code:
Dim SheetArray As Variant
Dim wsSheet As Worksheet
SheetArray = Array("Private", "Commercial", "Other", "APD")
ThisWorkbook.Activate
For Each wsSheet In SheetArray