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

page height 1

Status
Not open for further replies.

RobBroekhuis

Technical User
Oct 15, 2001
1,971
US
I'm trying to fill the active page with a pattern, but can't find out how to get the dimensions of the page. Document.paperheight gives me the size of the printed page, which is not necessarily the same.
Thanks
Rob
 
Try
Set pageObj = Visio.Application.ActivePage
Set shapeObj = pageObj.PageSheet
Set celObjPagH = shapeObj.Cells("PageHeight")
Set celObjPagW = shapeObj.Cells("PageWidth")
Debug.Print celObjPagH.Units; " "; celObjPagW.Units

John...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top