Hello,
I have been trying over the past couple of weeks to find some piece of VBA code that I could use to do this simple function :
I have a work book with multiple sheets. I have created a button on each sheet in A1 upon clicking opens a vba form box with an input box and a search and close button. Upon entering a reference number in the input box and clicking search I want the VBA code to search for this exact match value on each worksheet (line 2 only) and once found go and select the cell with offset (0, 5) and Macro can end if value not found then a msg box needs to come up saying "not found" .
on each sheets I have the following table structre
A B C D E F G H
1 TYPE FDH TNW TNW GAH TNW FDH FDH
2 REF 533 666 345 567 322 634 654
3 DATE data data data data data data data
4 COLOUR data data data data data data data
5 PRICE data data data data data data data
6 QTY data data data data data data data
7 VAT data data data data data data data
8 OFFER data data data data data data data
If Someone enters 345 in Input box the vba formula should take then to "D7" which is the cell offset by 5 from where the value was found in "D2"
hope this makes sense and I have made it clear enough. I have only subscribed to this site. I should have done it earlier as posts on here have always been very helpful.
I have been trying over the past couple of weeks to find some piece of VBA code that I could use to do this simple function :
I have a work book with multiple sheets. I have created a button on each sheet in A1 upon clicking opens a vba form box with an input box and a search and close button. Upon entering a reference number in the input box and clicking search I want the VBA code to search for this exact match value on each worksheet (line 2 only) and once found go and select the cell with offset (0, 5) and Macro can end if value not found then a msg box needs to come up saying "not found" .
on each sheets I have the following table structre
A B C D E F G H
1 TYPE FDH TNW TNW GAH TNW FDH FDH
2 REF 533 666 345 567 322 634 654
3 DATE data data data data data data data
4 COLOUR data data data data data data data
5 PRICE data data data data data data data
6 QTY data data data data data data data
7 VAT data data data data data data data
8 OFFER data data data data data data data
If Someone enters 345 in Input box the vba formula should take then to "D7" which is the cell offset by 5 from where the value was found in "D2"
hope this makes sense and I have made it clear enough. I have only subscribed to this site. I should have done it earlier as posts on here have always been very helpful.