vba - Excel; trying to find events in a column across multiple sheets -


i have on 100 worksheets identical. trying make 1 new sheet scans other sheets. scan 1 column (h) , find event (both >.05 , <-.05). need copy entire row , place new worksheet.

ok haven't touched vba in years, come googling different steps needed achieved. used random data ranging cell a1 h30 usin few example sheets; you'll need adapt code needs, should more enough started!

sub lookforvaluesinh()      dim ws_count integer     ws_count = activeworkbook.worksheets.count     dim ws worksheet     set ws = thisworkbook.sheets.add(after:=thisworkbook.sheets(thisworkbook.sheets.count))     ws.name = "results"      = 1 ws_count         dim row_count integer         row_count = 30         r = 1 row_count             worksheets(1).select             if cells(r, 8) >.05                 worksheets(1).rows(r).copy                 ws.activate                 ws.paste                 activecell.offset(1).select             end if         next r     next end sub 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -