Size a bitmap

I am using the following code to copy a range and paste in another sheet as a bitmap;

Dim shape As Excel.shape
    Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
        For Each shape In ActiveSheet.shapes

I want to size it to the following:
Size and rotate
Height 2.43"
Width 9.16"

Height 69%
Width 77%
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
You probably need something like

with ActiveSheet.shapes(1)
    .height =
    .width =
end with

You may try the values which will give you the desired result
cd_morrisAuthor Commented:
I am having to change the values each time the picture size changes.
Steven HarrisPresidentCommented:
I am having to change the values each time the picture size changes.

If all of the objects are different sizes and need to be adjusted to different, then this is expected.  What exactly did you have in mind?
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

cd_morrisAuthor Commented:
I want to set the size of the picture to fill the merge cell.
Steven HarrisPresidentCommented:
You may try something along the lines of the following:

Sub Q_28252927() 
    With ActiveSheet.shapes(1)
        .Left = .TopLeftCell.Left 
        .Top = .TopLeftCell.Top 
        .Height = .TopLeftCell.Height 
        .Width = .TopLeftCell.Width 
    End With 
End Sub 

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saqib Husain, SyedEngineerCommented:
You ought to be giving all information in the beginning. I gave you the same answer without your new requirement.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.