Shanan212
asked on
Application Defined or Object defined error
Set BaseWks = ActiveSheet
Sheets("GL Summary").Range("A1:G").CurrentRegion.Name = "Ranges"
Hi,
I am getting the 'Application Defined or Object defined error' on above line.
Using examples in this forum, I tried this
Set BaseWks = ActiveSheet
basewks.Range("A1:G").CurrentRegion.Name = "Ranges"
Then it gave me, 'method range of object worksheet failed' error :o
Any help is much appreicated!
I am trying to assign the region as an array for my dynamic pivot table!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this works now
Perhaps you can get in the habit of testing things before you ask the question.
Open in new window