+ Reply to Thread
Results 1 to 5 of 5

Need to bring worksheet name from the range of data that is copied

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Need to bring worksheet name from the range of data that is copied

    Hi,

    I have tried to bring data from multiple sheets to summary sheet. One point which is missing is which I am not able to bring sheet name to the number of lines of data each sheet has.

    Also, the data merger is currently set up with range mode and If I need to select all the data (if data has variance of my range) without range setting then how do I code it.

    I have enclosed the file for the reference.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Need to bring worksheet name from the range of data that is copied

    This should do what you want
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Need to bring worksheet name from the range of data that is copied

    Thanks for the help.

    Now, the macro runs on a particular range and if I have multiple ranges in different worksheets, then the complete data has to be selected and copied to the summary sheet.

    If I use in cells.select instead of range settings, does it works or else please let me know the code to change for the unknown data to be selected.

    Thank you.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Need to bring worksheet name from the range of data that is copied

    It worked on the sample data in the workbook you attached.
    Please attach a workbook with the data that it failed to work on. (redacting any sensitive information) and a description of what it did that you didn't want it to do.

  5. #5
    Registered User
    Join Date
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Need to bring worksheet name from the range of data that is copied

    Thanks, I was able to do small tweaks and the macro is running fine.

    Thanks for the help.

+ 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