Index match vba

nair.harish

New Member
Joined
Mar 2, 2010
Messages
40
Hi

I have a userform with 4 refedit functions, i worked out something like this
Private Sub OK_Click()

Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "RECO"

ActiveCell.FormulaR1C1 = _
"=INDEX('PHO STA JUNE'!C[4],MATCH('7282'!RC[-3],'PHO STA JUNE'!C[-3],0))"


End Sub

but i dont know how to link it to the ok button, secondly
the 4 refedit functions look like this
1) select supplier statement invoice numbers

2) select supplier amount

3) select our invoice numbers

4) select our amount

now what i really want to do is match supplier invoice number and amount with ours and if any numbers not found the invoice number is outputted with the amount saying that the invoice number is incorrect or not there, and if the amount matched with each other after subtracting is not zero, then it is returned separately(a simple reconcilation), right now i work with the index and match simultaneously, if this userform works then it would really be gr8.... can someone help??
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,843
Members
413,944
Latest member
3xc3ln00b

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top