'finding no of pages in a report
Sub nopages_macro()
Dim rep As busobj.Report
Dim nop As Long
Set rep = Application.ActiveDocument.Reports(1)
nop = rep.NumberOfPages
MsgBox "No. of Pages : " + CStr(nop)
End Sub
'Suppressing No Data to Fetch message
Private Sub Document_BeforeRefresh(Cancel As Boolean)
Application.Interactive = False
End Sub
Do you mean run the created macros??? If so Alt + F8 will do or else Tools - > Marco - > Macros.... and select your macro from the list and press Run... Isn't that so easy as well...
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.