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

Excel-Printing Pages-Mutiple Images. Images split vs bump to next Page 1

Status
Not open for further replies.

Randy11

Technical User
Oct 4, 2002
175
CA
Wondering if anyone has a suggestion or solution for the above noted issue. Have a fax template built into a Woekbook. The user will paste mutiple images onto the template then print it for faxing or send via e-mail. Problem with the print is that the images will split at the page break with 1 portion of an image on one page & the balance on the next page. Am looking for a solution that would bump any image on the page break into the next page vs splitting.
 


Hi,

Not knowing how your shapes place on the sheet, which could be a factor, loop thru your shapes, setting the ROW HEIGHT, associated with the TopLeft property of each shape, to the shape HEIGHT.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


If the row height is LESS THAN the shape height, then assign the shape height to the row height.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


As a rule it is best to align a shape with the shape's top left cell, top and left property. Otherwise you must calculate an offset within the cell from the cell's top to the shape's top (and for the left as well) and then accomodate that offset in the row height. That is what I meant by, "Not knowing how your shapes place on the sheet."

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thank you for your input. Have found a solution for this. As it turns out the siz of the pictures inserted do not vary in size by very much so was able to format rows to fit no problem. Only other issue I had was deleting the inserted images which someone was so kind as to post on the internet.

Reference: DK on Mr Excel Site.
Sub DeletePiccies()
Dim xlShape As Shape

For Each xlShape In ActiveSheet.Shapes
If xlShape.Type = msoPicture Then xlShape.Delete
Next

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top