Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Code for Filter on Multiple reports in BO Doc globally

Status
Not open for further replies.

rrbo

Programmer
Joined
May 7, 2003
Messages
24
Location
US
Hi ,

I have two reports in BO Document.
I wanna apply filter globally on the same object in two reports and have to export as Pdf.

I know we can Export as PDf with like.
dim mydoc as Document
mydoc.exportAsPdf(....)

I am able to filter in one report tab (Active) and ExportAsPdf with the link

But I need to filter globally on both reports and then have to ExportAsPdf...


Can any body please help me how we can write VBA code that applies filter for all reports.

Thanks
 
Loop through the required reports and apply the filter and export it. Seomthing like this...

Code:
For i = 1 To ActiveDocument.Reports.Count
    MsgBox ActiveDocument.Reports(i).Name
    ' Do your routine here (say Filter / Export)
Next i

Sri
 
Thank You Sri. Got It.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top