Thank you for your response.
When I use
groupRange.Cells(1).Group(TRUE,TRUE,7,MyArray)
I get the vbScript compilation error "Cannot use parenthesis when calling a sub"
and when I use
groupRange.Cells(1).Group(Start=TRUE, End=TRUE, By=7, Periods=MyArray)
I get the vbScript...
I am attempting to manipulate an existing excel pivot table using vbscript. I want to group the pivot table by 7 day weeks. I can sucessfully group by months but when I try to group by days I get a type mismatch error.
The script I am using is below:
myArray =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.