+ Reply to Thread
Results 1 to 4 of 4

Copy and paste formulas and pictures

  1. #1
    Registered User
    Join Date
    09-19-2008
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2016
    Posts
    62

    Copy and paste formulas and pictures

    Hi,

    I am trying to copy formulas and pictures from one workbook to another via VBA code. I've got the formula part working as follows:

    Please Login or Register  to view this content.
    I can't seem to figure out how to copy the pictures on the original Worksheet tab to the new workbook Worksheet tab.

    Can someone help me with this please?

    Many Thanks,
    Karyn

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy and paste formulas and pictures

    Looks to me that you are copying a sheet as a template, if that is the case then try this

    Delete xlNew.Sheets("Worksheet"). or don't add it in the first place.

    Then run your code with this amendment
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    09-19-2008
    Location
    Gloucester, MA
    MS-Off Ver
    Excel 2016
    Posts
    62

    Re: Copy and paste formulas and pictures

    Actually, the new worksheet is the template that I want to copy the old worksheet data and pictures into. I don't want to delete this worksheet completely because it might have something new in it. What I want to accomplish is to copy the data and pictures from the old worksheet called "Worksheet" to the new worksheet called "Worksheet".

    Thanks.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy and paste formulas and pictures

    Okay try running my suggestion then renaming the imported sheet, it should come in as "worksheet(2)".
    If I am again reading your code correctly, you are over-writing all of the existing sheet with the old data, so why does it matter if you delete it?

+ 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