report manager

RandyB

New Member
Joined
Sep 12, 2002
Messages
1
I've got a button that does this


Private Sub CommandButton1_Click()
Application.ExecuteExcel4Macro String:="Report Manager"
Application.ExecuteExcel4Macro String:="Report Manager"
Application.ExecuteExcel4Macro String:=" REPORT.PRINT(""PRINT ALL"",1)"
End Sub


But to make this work I have VIEW...REPORT MANAGER...CLOSE

And then the button works
I only have to do this once while excel is open
Is there a work around?

I believe I catch the command line <<opening...report.xla>>

I have the report manager checked for an add in.

Ok try this...
With report manager checked
Close excel
reopen excel
(notice report manager is still checked)
try macro
does not work

at least on my machine :(
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Watch MrExcel Video

Forum statistics

Threads
1,118,735
Messages
5,573,916
Members
412,555
Latest member
mark84
Top