Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This will work if :-
1. There is only 1 page. 2. The Print Range is set (or you can supply another range) '---------------------------------------------------- Sub test() '- requires that Print area is set Dim TotalRowHeight As Long Dim PictureHeight As Long '-- calculate height TotalRowHeight = 0 For Each RW In ActiveSheet.Range("Print_Area").Rows TotalRowHeight = TotalRowHeight + RW.RowHeight Next '- change picture position PictureHeight = ActiveSheet.OLEObjects("Object 1").Height ActiveSheet.OLEObjects("Object 1").Top = (TotalRowHeight / 2) (PictureHeight / 2) End Sub '-------------------------------------------- -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Repeating gradient for each vertical area of plot area | Charts and Charting in Excel | |||
How do I set a print area for every sheet in the workbook? | Excel Discussion (Misc queries) | |||
How do I calculate the midpoint date between two dates. | Excel Worksheet Functions | |||
Active cell counting in particular print page (one sheet having different print area) | Excel Worksheet Functions | |||
Print a sheet area to another... | Excel Discussion (Misc queries) |