+ Reply to Thread
Results 1 to 7 of 7

Find same result on multiple sheets

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Find same result on multiple sheets

    Hi,

    I have a workbook with a few worksheets.
    I found a way to find the same result on all the sheets with Ctrl+F and search the whole workbook.
    But I made a userform that would search for the results on the sheets and enter some data in columns next to the found result.
    So I don't have to go to every cell with the value I'm looking for and then write/Copy data in the cells.

    My code works for the active sheet.
    But I don't know why it doesn't work for the whole workbook like I'm tryn to tell it to
    If someone could help me out with this please:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Find same result on multiple sheets

    All your ranges need to be qualified by worksheet references.

  3. #3
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Find same result on multiple sheets

    you mean like:

    Please Login or Register  to view this content.
    ?

    isn't there a way to loop through the sheets? :O

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Find same result on multiple sheets

    Your code already loops through and uses the variable ws so you only need to repeat what you have done in your second for each line.

  5. #5
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Find same result on multiple sheets

    I wasn't sure what you mean by that I have to do the same in my second For Each Line...
    But I tryed to add a ws.Activate to the code and it works.
    I've just disabled and Enabled Screen updating so I don't get the fast page flashing
    Here is my code now, unless u had something else in mind:
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Find same result on multiple sheets

    That's the gist of it but you could have just done this which avoids activating sheets which is not necessary and inefficient:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Find same result on multiple sheets

    Ah...forgot about that
    Thank you for your help!

+ 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] looking value in multiple sheets and find result with vlookup
    By amarjeet.it in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 07:37 AM
  2. [SOLVED] Find match from 2 columns in 2 sheets and display result in the second sheet
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-15-2013, 05:59 PM
  3. Find the last-row result of multiple matches?
    By goodiein2808 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2011, 11:53 AM
  4. result from multiple sheets
    By Dipwind in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2007, 03:36 PM
  5. Excel : F2-F4 in multiple sheets should have independent result
    By themantheworldlovesmorethannathan in forum Excel General
    Replies: 1
    Last Post: 07-07-2006, 03:10 AM

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