ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   INDEX (https://www.excelbanter.com/excel-programming/273290-index.html)

mark

INDEX
 
I am using Excel 97. I am wanting a userform to look at a
table on a worksheet and give the mileage result between
two locations.

The code I have used (which doesn't work) is:

Me.txtNONTAXABLE1 = Application.Index(Worksheets
("Mileage Chart").Range("b2:bd56"), Me.comboFrom1,
Me.comboTo1)

I've also tried:

Me.txtNONTAXABLE1 = Application.WorksheetFunction.Index
(Worksheets("Mileage Chart").Range("b2:bd56"),
Me.comboFrom1, Me.comboTo1)

So that the value of the textbox on the userform changes
if the combo boxes on the userform are changed.

Can anyone put me on the right track, please?

Thanks

Mark




All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com