combobox calculations

mighty_man

New Member
Joined
Apr 6, 2005
Messages
12
Hi there,
I've populated my combobox from an excel sheet using vba.
I then scroll down the combobox looking for the line i want.
I want now to perform calculations on the selected line of my combobox, and have the result displayed in a Msgbox or else passed to a seperate worksheet.

Any ideas?
Thanks,
John
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
combobox question (take 2!)

I'm using a combobox on a userform in order to scroll through data set in an excel sheet.

This sheet has values in it from columns A to G and from rows 1 to 200.
Column A has the values for temperature and columns B to G contain the peak position at different measurement intervals.


I hope you're still with me?!
When i see the line i want when i'm scrolling down - say i see that there's an entry for temperature 45 degrees in column A, then i want to use the peak position values from columns B to G to calculate the overall peak value.

I want to do this in VBA.
Hope this makes it clearer,
John
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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
Back
Top