+ Reply to Thread
Results 1 to 3 of 3

Resize a picture

  1. #1
    Registered User
    Join Date
    04-10-2009
    Location
    VietNam
    MS-Off Ver
    Excel 2003
    Posts
    11

    Resize a picture

    I want to insert a picture on a cell of Excel. But this cell is too small. How do I shrink picture for a cell (use VBA)
    Last edited by nguyennb; 04-18-2009 at 11:43 PM.

  2. #2
    Registered User
    Join Date
    03-30-2009
    Location
    Derby, England
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Resize a picture

    You can use the following code

    Please Login or Register  to view this content.
    You'll need to know the name of the shape (they're numbered sequentially as they're inserted in to the sheet). The exact numbers you need to make it fit in (over) a cell may depend on your computer so try altering them. I can't find a way to insert the picture in to the cell (using something akin to the 'in line with text' option in word) but there may be a way...

    Cheers

    Mat

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Resize a picture

    You can only position the picture over a cell rather than in it.
    Shapes float on a drawing layer above cells.

    This will use the dimensions of the cell to size the shape to.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ 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