+ Reply to Thread
Results 1 to 5 of 5

Copy data from one wb on specified location and paste it to another wb

  1. #1
    Registered User
    Join Date
    09-14-2014
    Location
    Delhi, India
    MS-Off Ver
    Ms Office 2010
    Posts
    19

    Copy data from one wb on specified location and paste it to another wb

    Hi,

    I am trying to copy data from one workbook that is on specific location and then paste data to the another workbook and then save the 'another' workbook with specific name.

    I am able to save workbook but I am unable to copy data from one workbook to another. code gives an error. Below is my code. Please help.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy data from one wb on specified location and paste it to another wb

    Try this.

    Please Login or Register  to view this content.
    If it errors again, report which line is highlighted by the debugger and the error description.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-14-2014
    Location
    Delhi, India
    MS-Off Ver
    Ms Office 2010
    Posts
    19

    Re: Copy data from one wb on specified location and paste it to another wb

    Hi Alpha,

    thank you so much.

    Code worked as I wanted. Just wanted one tweak here.

    When the workbook - "LearnersinMandateDataExport_3657.xls" is already open. It gives a msg box that workbook is already open.

    Could you please suggest the change if the workbook is already open. So instead of going to that path, it just go to the opened workbook.


    Quote Originally Posted by AlphaFrog View Post
    Try this.

    Please Login or Register  to view this content.
    If it errors again, report which line is highlighted by the debugger and the error description.
    Last edited by aman2059; 01-24-2016 at 06:31 AM.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy data from one wb on specified location and paste it to another wb

    You're welcome.

    Try this.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-14-2014
    Location
    Delhi, India
    MS-Off Ver
    Ms Office 2010
    Posts
    19

    Re: Copy data from one wb on specified location and paste it to another wb

    This is solved. Thanks once again.

+ 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 between two work books paste into unspecified location
    By jessica88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2014, 07:28 AM
  2. copy & paste data based on its location in relation to other data.
    By wezwells in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2013, 07:45 AM
  3. [SOLVED] Copy and paste data into an excel generated cell location
    By BRIANHD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2013, 02:53 PM
  4. [SOLVED] Need Macro to select and copy data, paste it to a new location, then delete the old row
    By summerela in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-25-2012, 05:22 PM
  5. Copy and paste data from a worksheet to template, save it with a name and location.
    By sumplacenwa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2012, 12:47 AM
  6. VBA Copy-paste values with changing paste location
    By booost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2012, 10:39 AM
  7. Seach, Copy, select paste location, paste using macros
    By helpdave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2010, 11:36 PM

Tags for this Thread

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