+ Reply to Thread
Results 1 to 7 of 7

import picture to fit in merged cell

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    import picture to fit in merged cell

    I have created a code to import a picture into a cell or merged cells and created a button for it. The code works, but i would like to know if it's possible to shrink the picture slightly so it fits within the cell as right now it cover's up the borders.
    The code is
    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: import picture to fit in merged cell

    It seems as though you've already set the width - so if the height is excessive then, since you've locked the aspect ratio, adjusting the height should fit - too bad you're using a merged cell - perhaps:
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: import picture to fit in merged cell

    That increases the picture not decrease which is what i'm looking for and this code works in a single cell as well, and it still goes over the border of the cell is there something i can do with the line - Scale it to fit the cell - to Scale it to fit inside cell. HA HA

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: import picture to fit in merged cell

    How About
    Please Login or Register  to view this content.
    ????

    BTW - The reason I stuck with 2003 so long and when I upgraded, I upgraded to 2010 was that 2007 screwed up my shapes.

  5. #5
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: import picture to fit in merged cell

    I tried that before I responded, it does work but it doesnt center the pic so you can now see the bottom border but not the top and the width one doesnt work either

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Lightbulb Re: import picture to fit in merged cell

    try modifying this to meet your needs:
    Please Login or Register  to view this content.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: import picture to fit in merged cell

    it looks as though Jewel has your answer - all I can advise is to keep playing with it - good luck!

+ 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. How to import picture file from folder using cell value?
    By sukeshparikh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2013, 09:01 AM
  2. How to import picture file from folder using cell value?
    By kaypat in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-30-2013, 05:39 PM
  3. Import web data into excel does not import picture, how to substitute picture for a value
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2012, 03:29 AM
  4. Auto Resize Pasted Picture to merged cell
    By CyberPath in forum Excel General
    Replies: 2
    Last Post: 04-15-2012, 07:13 AM
  5. import picture in specific cell if filename = cellnumber
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2009, 01:35 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