excel - Resizing a screen image, from range of cells, on your clipboard before pasting into new sheet -


i have situation copying range of cells, selecting , copying them screen image, , pasting them new sheet , location.

worksheets("lmc_model").range("g1:x34").copypicture xlscreen, xlpicture worksheets("pdf page").paste _     destination:=worksheets("pdf page").range("a26") 

this works well, screen image large , needs resized before pasting in final location. ways resize image before pasting?

one option paste picture , resize it. since selected after pasting, can use afterwards:

selection.shaperange.lockaspectratio = msofalse selection.placement = xlmoveandsize selection.shaperange.width = desiredpixelwidth selection.shaperange.height = desiredpixelheight 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -