+ Reply to Thread
Results 1 to 3 of 3

Require help in modifying the code to copy data to an existing file instead of new file

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Require help in modifying the code to copy data to an existing file instead of new file

    Can anyone please help me to modify the code to paste the data to an already existing file...
    1. This line of code creates a new file and pastes the data.

    Please Login or Register  to view this content.
    Instead I wanted to give the path to an existing file, and the sheet and cell range where it can be pasted, the file has to be opened and pasted to the dest ranges

    2. This part of the code actually does the selection of the ranges to be copied, and pastes to the dest file from cell A1.

    Please Login or Register  to view this content.
    Instead I want to define a maping. For eg:
    A1:A10 to be copied and pasted in C1:C10 of the destined sheet
    C1:C10 to be copied and pasted in A1:A10 of the destined sheet
    E1:E10 to be copied and pasted in B1:B10 of the destined sheet

    Here is the entire code... your help is much appreciated. thank you in advance! I am not able to attach the sheet for some reason
    you can copy this code and paste it to the source workbook/sheet where you want the data to be copied from.

    Please Login or Register  to view this content.
    Last edited by ahamedcader; 11-13-2014 at 02:55 PM. Reason: added code

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,707

    Re: Require help in modifying the code to copy data to an existing file instead of new fil

    http://www.excelforum.com/forum-rule...rum-rules.html

    Please read #3 and act accordingly. It makes everything sooooo much easier.

    Thanks

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Require help in modifying the code to copy data to an existing file instead of new fil

    Thank you I have now edited the post. I wasn't aware

+ 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: 3
    Last Post: 05-21-2013, 08:22 AM
  2. macro to open, copy paste from existing excel file to a new blank file
    By 2blessed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 06:05 PM
  3. Copy Data from Closed File to Existing File
    By srikanthbenoni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2012, 08:36 AM
  4. Modifying existing VBA code to find different file name
    By PittsburghEng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2010, 03:24 PM
  5. Get data from protected file, changes required in existing code
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2009, 06:42 AM

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