+ Reply to Thread
Results 1 to 3 of 3

Auto Resize Pasted Picture to merged cell

  1. #1
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Auto Resize Pasted Picture to merged cell

    Hi... To ALL...

    I get one macro that insert picture from disk to selected cell, then auto resize that picture to merged cell size.

    But, now i intend to use that same code to PASTE a picture (from System Clipboard) then resize to merged cell size

    PASTING to selected merged cell, it works fine...
    But.. The resize,... Not that fine.

    Here is the code i intend to use;

    Please Login or Register  to view this content.

    I get ERROr in this line;

    If Target.Cells.Count = 1 Then ...

    Can someone help me in this...

    THANKs

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Auto Resize Pasted Picture to merged cell

    Replace Target with Selection as you don't appear to have specified what range Target is?
    Martin

  3. #3
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Auto Resize Pasted Picture to merged cell

    Quote Originally Posted by mrice View Post
    Replace Target with Selection as you don't appear to have specified what range Target is?
    Yes, you are right, there is another part of the code, like this;

    Please Login or Register  to view this content.

    BUT, after some more research, i have come up with this;

    Please Login or Register  to view this content.
    Thanks your tip led me to investigate...

+ 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