Hi, my excel skills aren't all that great and i really need some help with this otherwise i think i may have to go through manually which could take hours!
I have a database for a warehouse full of boxes, there are 12 sheets corresponding to different aisles in the warehouse, each with around 3000 box numbers in their specific locations.
i also have 1 sheet which has a list of 2000 boxes i have to remove from the warehouse.
is there a way (without moving everything to 1 page) that i can highlight all the duplicate numbers in their current sheets so it's easier to locate those boxes that need to be destroyed?
Thanks, josh.
Hi washua
will out the workbook something like
Dim ws1 As Worksheet, ws2 As Worksheet Dim FoundOne As Range, LookInR As Range, LookForR As Range, c As Range Dim nr3 As Long, fAddress Application.ScreenUpdating = False Set ws1 = Sheets("Sheet7") Set ws2 = Sheets("Sheet8") Set LookInR = ws1.Range("A2:A10") Set LookForR = Range(ws2.Range("A2"), ws2.Range("A" & Rows.Count).End(xlUp)) For Each c In LookForR With LookInR Set FoundOne = .Find(what:=c, LookAt:=xlPart) If Not FoundOne Is Nothing Then fAddress = FoundOne.Address Do FoundOne.Interior.ColorIndex = 6 Set FoundOne = .FindNext(After:=FoundOne) Loop While FoundOne.Address <> fAddress End If End With Next c Set ws1 = Nothing Set ws2 = Nothing Set LookInR = Nothing: Set LookForR = Nothing Application.ScreenUpdating = True
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
arrr mac I not to sure if it will work
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
Attach a sample workbook with dummy data and atleast 2 sheets.
Cheers,
Arlette
If I helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
If i understand correctly, a named range and some simple conditional formatting could be all that's needed, see attachment.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks