+ Reply to Thread
Results 1 to 5 of 5

VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

    This one is quite complicated. I'm new here so go easy on me:

    I get a daily report for all our accounts with outstanding balances. There's about 3,500 accounts. When I download the report to Excel it puts 103 accounts on a worksheet, so there's usually 34 or 35 worksheets.

    I need a macro that displays only these 38 accounts and ideally would display the entire row for each account:

    30783819
    30863296
    30867342
    30898966
    30769419
    30747148
    30731023
    30731226
    30731234
    30747623
    30769857
    30827826
    30770364
    30770436
    30770508
    30770516
    30770524
    30770575
    30783878
    30804392
    30792459
    30805061
    30805088
    30805205
    30827711
    30846701
    30856782
    30872555
    30872563
    30872571
    30866374
    30834647
    30877364
    30872205
    30877073
    30877188
    30878236
    30877356

    I would need to do this every day. The file name is different each day. If anyone could help I would greatly appreciate it. Would save me a lot of time each day! Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

    Try this macro. Before you run the macro, create a sheet named 'Master'. The found accounts will be copied to this sheet. You have a lot of data so hopefully, it won't take too long to process.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

    It worked for the sample, but when I applied it to the actual workbook I'm using it did not work. I deleted a few columns. Didn't think it would matter. I will upload the actual workbook with most of the worksheets deleted. Could you take a look at it again? Thanks so much for your time and effort.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-19-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

    Nevermind. I just changed the range and it worked beautifully. Thank you so much!

    Do you know if there's a way to display the headers as well?

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: VBA Help - Find 38 unique values (accounts) across all worksheets & display entire row

    Try this macro. It will also copy the column widths so you don't have to re-adjust then in your "Master" sheet. If you change the sheet name "Page1_1" to something else, you will have to change the reference to it in the code (2nd. line) to match.
    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)

Similar Threads

  1. Macro to find text and display entire row in message box
    By n00ne in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-10-2015, 01:34 AM
  2. TO copy the entire row with unique values
    By sgmat in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-20-2013, 12:45 PM
  3. How to find the unique value and display it in relevant cell
    By danfullwood in forum Excel General
    Replies: 6
    Last Post: 02-05-2013, 08:30 AM
  4. Find & Display Unique Values
    By dreicer_Jarr in forum Excel General
    Replies: 5
    Last Post: 08-25-2009, 03:45 PM
  5. Display Unique Values
    By S Davis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-04-2006, 05:55 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