+ Reply to Thread
Results 1 to 4 of 4

Automatically Resize Imported Picture to Fit Cells

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Automatically Resize Imported Picture to Fit Cells

    I have been asked if possible to insert a picture into Excel and it Autiomatically re-sizes to fit the merged cell I have for it.

    When I insert they come in as massive pictures and I have to manually resize. I know of course I could re-size them all first but just wondered if possible to save some time?

    Thanks

    Steve

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Automatically Resize Imported Picture to Fit Cells

    Hi,

    Probable there are many other ways even better then this but I wrote for you following solution
    Please Login or Register  to view this content.
    Create some test.jpg file in C:\ and test above mentioned macro.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Automatically Resize Imported Picture to Fit Cells

    Like

    Please Login or Register  to view this content.
    Last edited by snb; 09-22-2011 at 04:27 PM.



  4. #4
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: Automatically Resize Imported Picture to Fit Cells

    Thank you for help, one last thing (Newbie)

    I have the cells Merged, do I need to insert a command button in the merged cells to run the macro or could I put something in the merged cells that would go to Picture folder and let me choose a picture and then it would re-size whhose it?

    Thanks again for help

    Steve


    Quote Originally Posted by maczaq View Post
    Hi,

    Probable there are many other ways even better then this but I wrote for you following solution
    Please Login or Register  to view this content.
    Create some test.jpg file in C:\ and test above mentioned macro.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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