+ Reply to Thread
Results 1 to 3 of 3

How do I resize an inserted image in a cell?

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    19

    How do I resize an inserted image in a cell?

    Hi all,
    I have a problem that is driving me crazy. I'm pretty new to VBA/Macros. I have managed to get the macro working to insert a specific jpeg image into the right cell 'W28', however I don't know how to resize the image so that it doesn't cross over the cell borders, which it currently does. The macro is linked to a command button. There will be a few buttons, each one inserting a different signature depending on the user. Once I have the first one sorted, then it will be straight forward to do the others. Here is the code I currently have;

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Can someone please help me on this?

    Thanks,
    Benn
    Last edited by arlu1201; 12-16-2012 at 02:07 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How do I resize an inserted image in a cell?

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.

    Also,

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: How do I resize an inserted image in a cell?

    Hi Arlette,
    Yes I solved the problem myself by amending the formatting of the target cell. Sorry for not posting an explanation when I marked the thread as solved.

    And in future I will remember to use code tags.

    Regards,
    Benn

+ 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