Hello, all,
I am trying to get the total number of sections on a report via VBA. Does anyone have experience doing this?
This code doesn't work:
because there is no "Sections" collection. According to MS Help, report sections are an array, but this code doesn't work either:
I keep getting an "argument not optional" error.
Does anyone know an efficient way to get the count of the sections on a report?
Thanks,
Heather
Floyd Innovations
I am trying to get the total number of sections on a report via VBA. Does anyone have experience doing this?
This code doesn't work:
Code:
iTotalSections = rpt.Sections.Count
Code:
iTotalSections = UBound(rpt.Section())
Does anyone know an efficient way to get the count of the sections on a report?
Thanks,
Heather
Floyd Innovations