+ Reply to Thread
Results 1 to 5 of 5

Macro copying from files with different names

  1. #1
    Registered User
    Join Date
    03-15-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2007
    Posts
    22

    Macro copying from files with different names

    Hello everyone,

    I want a Macro to copy into a specific file out of another one. The problem is that the other file changes, every new version has another name.
    I thought about including a cell in the target file, in which the user can type the name of the file and the macro should use this information to copy out of this file.
    Is there any possiblity to do so?
    Perhaps with Dim copy as ??

    Thanks in advance,

    The Intern

  2. #2
    Registered User
    Join Date
    03-21-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Macro copying from files with different names

    Hi Intern,

    Do you want to merge different worlsheets to a single one or Merge different sheets of same workbook to a single sheet ?

  3. #3
    Registered User
    Join Date
    03-15-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Macro copying from files with different names

    Sorry, if my question is difficult to understand.
    I want to copy from one workbook into workbook A. The problem is that I don't know the name of workbook which is the source. Thats why I want to include this cell into workbook A, where you can type the name of the source-file. The macro (in workbook A) should take the name out of the cell automaticly and copy from the workbook with this specific name.

  4. #4
    Registered User
    Join Date
    03-21-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    17

    Smile Re: Macro copying from files with different names

    Here is the code..

    It will ask you to add select the files which u want to append n your workbook..

    Cheers..


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-15-2011
    Location
    Bangkok
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Macro copying from files with different names

    Thank you very much for your help!!
    This macro is really advanced...and to be honest, I am a beginner
    So I don't really understand it. Would you mind explaining it a bit further?
    I tried to start it in order to see what it is doing, but it always says: Label is not defined.
    Do I have to give the Sub a specific name?
    Thanks again,

    The Intern

+ 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