PC Review


Reply
Thread Tools Rate Thread

Code to resize image

 
 
Gotroots
Guest
Posts: n/a
 
      13th Nov 2009
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.
 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      13th Nov 2009
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.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize image in asp.net Tomo Microsoft C# .NET 2 28th Mar 2007 07:52 PM
Resize image from SQL server and display in asp:image =?Utf-8?B?Sm9obiBTY290dA==?= Microsoft Dot NET 1 18th Jan 2005 04:29 PM
How to resize an image from SQL IMAGE field =?Utf-8?B?Um9ic29uIENhcnZhbGhvIE1hY2hhZG8=?= Microsoft ASP .NET 2 10th Sep 2004 09:47 PM
Image Scaler - Resize Image files jo Freeware 0 29th Aug 2004 01:26 AM
Riddle me this: Mdi FormBorderStyle.none code resize vs. border resize Bob Microsoft Dot NET Framework Forms 0 9th Aug 2004 03:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 AM.