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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CANCEL EXCEL BUTTONS

Status
Not open for further replies.

mn12

Programmer
Dec 22, 2002
52
IL
Hi All,
in my program I create report by excel and open it from vb.
I open the report in "display before print" .when displaying before print is open, there are some buttons there that I want to cancel,or to cause them to be disable.
(those buttons are standard part of excel).how can I "control" those buttons by using vb code?
 
You just switch the ToolBar off... if you told us which toolbar it is and where it is.
 
HOW can I switch the toolbar off?
I mean,the toolbar you see when you use the "printPreview"
command,(not the standard toolbar of excel)
 
Hello.

Try running the print preview with this:-

ActiveSheet.PrintPreview False

the false on the end prevents any changes being made.

Regards,



mudstuffin

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top