+ Reply to Thread
Results 1 to 4 of 4

copy data based on workbook name

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    copy data based on workbook name

    Good Morning, i need a macro that will return the workbook name without the extension and based on that name, copy the appropriate data from a sheet to the master sheet.

    I attached an example.

    Thanks for the help
    Attached Files Attached Files
    Last edited by ciprian; 05-09-2011 at 03:35 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: copy data based on workbook name

    Your example doesn't really help explain what you need
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Re: copy data based on workbook name

    I've updated the workbook example.

    So the workbook is named 57 - 58. xlsx

    The Master sheet should look like this after running the macro

    B1 = 57 - 58 (the name of the worksheet, without the extension)

    D1 = B3 from the "find here" sheet (based on the workbook name, return the data)

    F1 = C3 from the "find here" sheet

    H1 = D3 from the "find here" sheet

    all the info that needs to be copied is found on the same row as the workbook name. So the macro has to find the right row from which to copy the data

    Hope I explained better now.
    Last edited by ciprian; 05-09-2011 at 02:57 AM.

  4. #4
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Re: copy data based on workbook name

    Ok managed to make it work

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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