+ Reply to Thread
Results 1 to 3 of 3

Automatically Resizing Images to cell size with VBA

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Automatically Resizing Images to cell size with VBA

    I Have a worksheet with in cell I13 the name of a picture which is placed in my pictures folder.

    When changing the value of cell F12 the picture is placed in cell F12.

    The size of these pictures however is not good. How can I scale the size automatically to the size of cell F12 (for both hor. orientated and vert. orientated pictures) with VBA code?

    Thanks in advance!

    Here's the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Automatically Resizing Images to cell size with VBA

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 02-12-2020 at 09:04 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-25-2017
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Re: Automatically Resizing Images to cell size with VBA

    Thanks AlphaFrog... I noticed the code I started with is not exaclty what I need. Made a new post

    Thanks anyway!

+ 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. Resizing Images Brought in Through VBA (Solved)
    By DaveC3BI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2019, 11:07 AM
  2. Insert images and resizing
    By Jiloin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2019, 11:12 AM
  3. Automatically resize numerous images to a cell size
    By Ciarmccabe in forum Excel General
    Replies: 0
    Last Post: 12-03-2013, 06:33 PM
  4. Images resizing themselves
    By digit in forum Excel General
    Replies: 0
    Last Post: 06-19-2009, 06:23 AM
  5. Resizing Multiple Images
    By Dri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2008, 03:10 PM
  6. Images moving and resizing when printing
    By 0jt7 in forum Excel General
    Replies: 1
    Last Post: 04-11-2008, 11:29 AM
  7. Re: Images are resizing in print
    By The Analyser in forum Excel General
    Replies: 0
    Last Post: 07-04-2006, 11:30 AM

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