Page.AutoSizeDrawing method (Visio)

Automatically resizes the drawing page by adding as many printer-paper-sized tiles as necessary to fit all shapes in the drawing onto the page.

Syntax

expression. AutoSizeDrawing

expression An expression that returns a Page object.

Return value

Nothing

Remarks

If you call the AutoSizeDrawing method when the Print zoom setting in the user interface (on the Print Setup tab of the Page Setup dialog box on the Design tab) is set to Fit to (a specified number of sheets across and down), Visio returns an error, indicating that it cannot automatically resize that page.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.