+ Reply to Thread
Results 1 to 3 of 3

how to copy data from one excel sheet to another automatically?

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    1

    how to copy data from one excel sheet to another automatically?

    Hi,
    I want to transfer some data from one excel to another on daily basis. Is it possible to automate this process? by using any macro or some kind of script?
    I have to transfer the data between 2 excels.
    Please help
    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: how to copy data from one excel sheet to another automatically?

    Hi,

    Yes, it's a common task. Does the worksheet you want to copy from always have the same name? In which case you can hard code the name in the macro, otherwise you'll either need to prompt the user for a name or read the name from a cell in the workbook into which you want to copy data

    The general format of such a macro, assuming the workbook name is fixes is:

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Administrator ExlGuru's Avatar
    Join Date
    03-17-2009
    Location
    India
    MS-Off Ver
    2003,2007
    Posts
    222

    Re: how to copy data from one excel sheet to another automatically?

    You can do it very easily by using VBA. The changing filename is not an issue if both sheets are in the same file, so I guess thay are not. That being so, if you can put the active VBA code into the source file, and refer to self as ThisWorkbook, actual filename does not then matter. If you want to 'grab' (rather than send) it is a little trickier. Working on the first assumption for now, copy this to a code module:
    Please Login or Register  to view this content.
    Try this hope this helps.
    Good Luck
    ExlGuru

+ 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