+ Reply to Thread
Results 1 to 3 of 3

copy from external file, paste in current workbook

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    Bulgaria, Europe
    MS-Off Ver
    2007, 2013
    Posts
    59

    Unhappy copy from external file, paste in current workbook

    I have a problem that can not resolve

    I have 2 sourse files with 2 sheets in each one. This sheets I copy and paste im my workbook. I wrote 4 identical procedures for copy-paste for each one sheets. My first and second procedures (for first file) is working properly, but the next is not paste.
    I can not understand why


    where I'm wrong?
    Please Login or Register  to view this content.
    For the next procedures I change only
    LocF = oSet.Cells(13, 7).Value ' where is file name

    Set oSheetDL = oExt.Worksheets("DC Total") ' sheet from source file
    Set oDataDevL = Worksheets("DataDevLoc") ' sheet in my workbook to paste

    Thank you in advance for help!
    Last edited by rodich; 01-16-2012 at 04:28 AM.
    ?If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.?

    George Bernard Shaw

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: copy from external file, paste in current workbook

    You might want to share the code (all of the modules) and/or upload a sample oh the workbooks.

    Otherwise it's anyone's guess.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-03-2011
    Location
    Bulgaria, Europe
    MS-Off Ver
    2007, 2013
    Posts
    59

    Re: copy from external file, paste in current workbook

    sorry, but now I. share code in post ...
    and upload the code
    Attached Files Attached Files
    Last edited by rodich; 01-16-2012 at 05:10 AM.

+ 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