+ Reply to Thread
Results 1 to 4 of 4

How to paste picture into cell without cell selection?

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    52

    How to paste picture into cell without cell selection?

    I would like to paste pictures from the clipboard to my workbook. Currently I'm using this piece of code to paste the picture, which works, however the cell need to be selected for this to work.

    Please Login or Register  to view this content.
    The code I want to use would start like this:

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,987

    Re: How to paste picture into cell without cell selection?

    It looks like you've answered your own question. Your second bit of code is on the right track. Do this:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: How to paste picture into cell without cell selection?

    No, unfortunately if I run that code I get the error message "Compile error: Named argument not found." The reason for this is that Range.Pastespecial uses different arguents than Activesheet.PasteSpecial. You can see it here with inserting formatting: http://www.excelforum.com/excel-prog...tion-cell.html However I have realised that arguments are not obligatory so Range("A1").PasteSpecial actually works.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,987

    Re: How to paste picture into cell without cell selection?

    Sorry, I was working from memory, didn't actually test any code. Glad you got it to work.

+ 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. Paste image or picture to cell
    By MAG in DMS in forum Excel General
    Replies: 1
    Last Post: 01-29-2014, 06:41 PM
  2. Marco/VBA to copy a selection and paste into an email as a picture
    By jsneak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2014, 05:53 AM
  3. Paste Picture by Cell data
    By Errant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2012, 01:35 AM
  4. [SOLVED] Can an Excel formula be created to paste a picture in a cell?
    By bonita0914 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2005, 02:06 PM
  5. macro to copy selection and paste special as picture in word
    By rabbi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2005, 09:29 PM

Tags for this Thread

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