You can see if a report is open and then run code. Which would essentially happen one you execute code to open a report.
Lets say you report name is "TEST REPORT"
Code:
Do while Reports.Count = 0
Flag = ""
Loop
For cnt = Reports.Count To 0
RptName = Reports(cnt).Name
If RptName = "TEST REPORT" Then
'execute you code here
End If
Next
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.