+ Reply to Thread
Results 1 to 6 of 6

Cannot Paste data between workbooks in VBA.

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

    Cannot Paste data between workbooks in VBA.

    Hello All,

    I have the below function I am trying to get working.
    Please Login or Register  to view this content.
    The code completes fine, but no data is actually being pasted to the destination workbook. I have ensured there is data present in the range by doing a Message Box check of some values.

    Is there something wrong with what I am doing? Please help!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cannot Paste data between workbooks in VBA.

    Why are you opening the workbook in a separate instance of Excel?
    Entia non sunt multiplicanda sine necessitate

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

    Re: Cannot Paste data between workbooks in VBA.

    It is actually between two workbooks I want to copy and paste between. One has the sheet "Trans Details - Current Month", and one is the workbook currently open where I am running the function from.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cannot Paste data between workbooks in VBA.

    I get that. My question is, why not open the workbook in the same instance of Excel as ThisWorkbook is open in?

  5. #5
    Registered User
    Join Date
    04-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Cannot Paste data between workbooks in VBA.

    Quote Originally Posted by shg View Post
    I get that. My question is, why not open the workbook in the same instance of Excel as ThisWorkbook is open in?
    I'm not quite sure how I would do that. But would that be the difference as why the data is not pasting?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cannot Paste data between workbooks in VBA.

    Untested:
    Please Login or Register  to view this content.
    Last edited by shg; 07-29-2013 at 11:57 AM.

+ 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. Copy and paste data between tables in separate workbooks.
    By catigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2013, 04:41 PM
  2. Copy and Paste Data between Two Open Workbooks
    By 3link in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2011, 12:07 PM
  3. [SOLVED] Macro to Filter Data and Paste in new Workbooks
    By willy91785 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2010, 11:14 AM
  4. Copy and Paste data from Multiple Workbooks
    By nih in forum Excel General
    Replies: 1
    Last Post: 09-18-2009, 02:24 PM
  5. Copy-paste data from different workbooks
    By fallito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2008, 12:04 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