+ Reply to Thread
Results 1 to 14 of 14

Does sheet need to be visible to copy picture from it?

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

    Does sheet need to be visible to copy picture from it?

    I placed a picture on a worksheet to use on other sheets in a macro, but the sheet is always hidden when I run the macro. I found I had to make it visible, copy the image, then hide it. Is this the case, or is there a better way of doing this? I could place it on one of the sheets which is always visible, but it is not at the start and if others are doing this, I want it done from my "welcome" worksheet. Maybe there is a way I can move the image to another sheet? I have a spot on the welcome sheet three rows wide and two high for this image to fit into. If a macro could be written to move this image to another sheet, then shade those 6 cells and remove the commandbutton would be icing on the cake! I could try recording my steps, but I have found that some steps do not seem to be recorded. Thanks, AGAIN!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Does sheet need to be visible to copy picture from it?

    if u don't use mothed "select", then visible is needn't
    u can use copy directly, the code could be:
    Sheets("Welcome").Shapes("Picture 1").Copy

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

    Re: Does sheet need to be visible to copy picture from it?

    Awesome, thanks simcode! I will give that a try.

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

    Re: Does sheet need to be visible to copy picture from it?

    Works! Or, as I also just found out, I could do this?

    Sheets("Sheet15").Shapes("Picture 1").Copy

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Does sheet need to be visible to copy picture from it?

    Please Login or Register  to view this content.
    Check out the example, the picture is on sheet 2 which is hidden.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Does sheet need to be visible to copy picture from it?

    certainly, if "Picture 1" is there

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

    Re: Does sheet need to be visible to copy picture from it?

    I keep getting errors now Does the whole macro need to refer to sheets as sheets or can you have a mix of sheets and tab names? It seems like I've lost the picture, which I renamed from "picture16" to "picture1". I did this macro using the recorder, now modifying and it's not working. Here is the macro. The line in red is where the error is now occurring.

    Please Login or Register  to view this content.
    Last edited by thecdnmole; 09-28-2014 at 10:04 AM.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Does sheet need to be visible to copy picture from it?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

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

    Re: Does sheet need to be visible to copy picture from it?

    I moved this line over and now get this error.
    Macro_error.JPG

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Does sheet need to be visible to copy picture from it?

    Remember that time I suggested attaching a sample workbook?

    Well you haven't yet, and it is hard to work with a workbook that we can't see.

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

    Re: Does sheet need to be visible to copy picture from it?

    Quote Originally Posted by davesexcel View Post
    Remember that time I suggested attaching a sample workbook?

    Well you haven't yet, and it is hard to work with a workbook that we can't see.
    I would if I could, but it's too big and complex to "make simple" and post. I posted the macro, that doesn't help?

  12. #12
    Forum Contributor
    Join Date
    09-28-2014
    Location
    harbin,china
    MS-Off Ver
    2007
    Posts
    162

    Re: Does sheet need to be visible to copy picture from it?

    If you can attach a workbook as sample, then maybe it is easier to understand and tackle your problems

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

    Re: Does sheet need to be visible to copy picture from it?

    I figured out some of the problem and from another question I posted on this forum was able to get the balance figured out, so all is good now and I will mark this as solved. Thanks to all for their help and yes, sometimes it's difficult to explain and an example would be easier, but sometimes that is more difficult than the problem itself.

  14. #14
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Does sheet need to be visible to copy picture from it?

    I think you perhaps need something like this

    Please Login or Register  to view this content.
    Thanks

+ 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. Replies: 0
    Last Post: 02-10-2014, 12:29 PM
  2. [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
  3. Problem when copy pasting a picture from sheet to sheet
    By leugu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2011, 04:07 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