+ Reply to Thread
Results 1 to 11 of 11

vba to copy a picture from a hidden sheet and paste in visible sheet?

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    vba to copy a picture from a hidden sheet and paste in visible sheet?

    I can't get this to work! The only way I can make it work is to make the sheet visible, copy the picture, then hide it. Is there a better, more efficient way of doing this? Thanks!
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Try something like this...
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Quote Originally Posted by ARowbot View Post
    Try something like this...
    Please Login or Register  to view this content.
    Thanks for the reply ARowbot, but I tried that code (which seemed to be missing paste?), as well as two others and it causes an error.
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    I see the problem now...The problem is that VBA doesn't seem to be able to copy a picture without first selecting it unlike a cell for example. This is a problem because you cannot select the picture on a hidden sheet. So I am unable how you can do it without unhiding then copying then hiding the sheet.

  5. #5
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Ok, thanks ARowbot for trying!

  6. #6
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Well, after some websearching I found the answer!
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Well that didn't work as planned! I need it to keep the picture name as picture 4 so I can remove it, but the code I found names the picture whatever number it wants! Is there a simple way to make this work?

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

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    You can rename it after all is said and done:
    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

  9. #9
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    Thanks xladept! Will this work if there is other pictures on the worksheet? I only want this one named picture 4.

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

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    It will work on the last one placed on the sheet.

  11. #11
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: vba to copy a picture from a hidden sheet and paste in visible sheet?

    That should work then! I will give it a try, although I switched that sub to using an "IF" statement and copy/paste linked picture, which I like better, but I am wondering if it slows down the spreadsheet.

+ 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. [SOLVED] Does sheet need to be visible to copy picture from it?
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-28-2014, 11:33 PM
  2. [SOLVED] Copy and Paste Range Sheet to Hidden Sheet
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2013, 07:32 PM
  3. [SOLVED] Copy range from one sheet and paste in another sheet on the next visible row after header
    By MaQian in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2013, 10:48 AM
  4. Copy and paste visible to different sheet
    By cabinetguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2011, 03:04 PM
  5. Copy paste visible on same sheet
    By Jay in forum Excel General
    Replies: 1
    Last Post: 09-26-2005, 12:05 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