+ Reply to Thread
Results 1 to 5 of 5

VBA code that searches multiple worksheets in a workbk and returns specific data to sheet

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    VBA code that searches multiple worksheets in a workbk and returns specific data to sheet

    This follows on from my previous post:

    http://www.excelforum.com/excel-prog...ml#post4073991

    Skywriter, your code does exactly what I want and asked for, bang on and fairly easier for my novice skillset. I just need help to adding a few extra layers to it. At the moment it's searching for array headers as the values are under headers, but now in addition to that I need it to return specific values which have no headers from the matched sheets. e.g. in addition, return data from B12 if F12 = Fail
    I forum mod skywriter greatly assisted me in creating an array find macro that returned data from various sheets in a workbook.

    I've been struggling add code for the search function to return additional values from the sheet if they met a certain criteria. My Almost working code is in attached workbook and below:

    Please Login or Register  to view this content.

    Many Thanks....
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: VBA code that searches multiple worksheets in a workbk and returns specific data to sh

    Make sure you test this for accuracy.
    Attached Files Attached Files
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: VBA code that searches multiple worksheets in a workbk and returns specific data to sh

    Awesome!!!! Dude you Rock!

    Just out of interest, how long did it take you roughly to do this, took me 2 hours and I still failed...
    Ah well..I'm still learning..

    Rep added

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: VBA code that searches multiple worksheets in a workbk and returns specific data to sh

    Quote Originally Posted by SKooLZ View Post
    Awesome!!!! Dude you Rock!

    Just out of interest, how long did it take you roughly to do this, took me 2 hours and I still failed...
    Ah well..I'm still learning..

    Rep added
    Thanks for the rep. points and feedback. It took a few minutes, but I first started VBA about 17 years ago mainly with Access and after a couple of years I stopped. For the past year or so I've been working to increase my knowledge, mainly here, so I have a bit of experience.


    Please click the Thread Tools drop down box above your first post and choose solved.
    Last edited by skywriter; 06-11-2015 at 12:09 PM.

  5. #5
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: VBA code that searches multiple worksheets in a workbk and returns specific data to sh

    Ahh, I see... well Excelforum is definitely the place for practice as there's load of newbie's like me. I was a good cobol programmer 17 yrs ago myself..but stopped and took a career detour...so due to necessity I've had to fast track learning Excel and recently started Access to build a work tool...

    Thanks again...much appreciated.

+ 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. [SOLVED] VBA macro that searches multiple worksheets in a workbk and returns specific data to sheet
    By SKooLZ in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2015, 04:42 PM
  2. Replies: 2
    Last Post: 10-14-2014, 06:49 AM
  3. [SOLVED] Create macro that searches multiple named ranges and returns name of the range with data
    By mechant in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2013, 01:04 AM
  4. Replies: 4
    Last Post: 10-22-2012, 03:21 AM
  5. Replies: 21
    Last Post: 05-26-2012, 06:09 PM

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