LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Code to resize image

Dim myWS as excel.worksheet
Dim myShape as Excel.Shape

Set myWS = ActiveSheet
Set myShape = myWS.Shapes("EnterShapeName")

With myShape
.LockAspectRatio = msoFalse
.width = 500
.height = 300
end with

--
HTH,

Barb Reinhardt



"Gotroots" wrote:

I want to use a command button to resize an image in a worksheet. I tried to
generate the code by recording a macro. However I have just leaned this is
not possible using Office 2007.

Most great full if someone could assist with supplying the code for this.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize image using macro Gotroots Excel Worksheet Functions 1 November 12th 09 11:04 PM
How we resize image in harddisk ? mesuttasar[_2_] Excel Programming 5 March 14th 09 11:36 AM
Resize the image in excel 2007 Akader Excel Programming 9 April 10th 07 05:56 PM
Drag/resize an image on UserForm by the user avi Excel Programming 6 March 17th 07 10:24 AM
resize userform image to fit on any monitor timspier[_7_] Excel Programming 1 August 5th 06 06:44 AM


All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"