+ Reply to Thread
Results 1 to 8 of 8

Alter the size of an any image.

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Alter the size of an any image.

    Please find the attached example for what I am trying to do.
    I want to be able to put a size value in R5 and R6 for the resize dimensions to be used when you click on the FIX button.
    1) I don’t know how to alter the Macro1 code to resize to the requested numbers
    2) The way I will use this is to dump many charts like this onto the page and if I select the image and click the FIX button it will make the changes, so I also don’t know how to change the code where it says “Picture 3” to be whatever is currently selected. Also, could I actually select all of the charts I need to change and click the button to change them all???
    Thanks for your help!!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question


    What is the unit of K5:K6 ?

  3. #3
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Alter the size of an any image.

    I believe it would be inches.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Alter the size of an any image.

    Hi there,

    Take a look at the attached workbook and see if it does what you need. It uses the following code:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Alter the size of an any image.

    This looks really great, only issue is that is seems to size proportional. if i try to change either the height or width it adjust them proportionality where i need to change width and height independently. Other than that this is a winner!!!

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Alter the size of an any image.

    Hi again,

    Oops! Sorry I forgot about that aspect - no pun intended!

    Try:

    Please Login or Register  to view this content.

    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M

  7. #7
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Alter the size of an any image.

    WOW that sure did it for me. Thank you very much!!!!!!!

  8. #8
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Alter the size of an any image.

    Hi again,

    Many thanks for your very prompt feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help resizing image - produces different image size on different computers.
    By Andrew Entee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2017, 01:47 PM
  2. Maintain image size across different size displays
    By jewelsharma in forum Excel General
    Replies: 5
    Last Post: 12-29-2015, 09:01 AM
  3. Fix the image size for all image in cell
    By ganeshkumar in forum Excel General
    Replies: 5
    Last Post: 02-20-2014, 08:23 AM
  4. Alter numeric values by size
    By lengjay in forum Excel General
    Replies: 4
    Last Post: 11-12-2009, 10:34 PM
  5. Replies: 1
    Last Post: 03-30-2007, 10:30 AM
  6. Alter mask of image on button
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2006, 07:40 PM
  7. How can I alter the size of the text box in an Excel
    By Bob W. in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-27-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1