Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Changing Label Text Depending on Drop Down Selection

$
0
0
Hey all,

Not sure where this should be posted but hopefully someone can explain this to me.

I am using Excel 2010 to create my own binary options trading program. Anyway what I am looking to do is have a label which text changes depending on what drop-down selection is made. I will attach a screenshot to help explain:

Name:  screenshotbinary.png
Views: 74
Size:  133.2 KB

I have the drop-down list data range from cells A1 - A10 (EUR/USD, USD/JPY, etc.) and I want Label 5 to display the number in the column G depending on which currency pair is selected (ie. If EUR/USD is selected, Label 5 text should read the value from cell G1).

How would this code look in VB? Would if have to be part of the DropDown_Click() section? Sorry for my noobishness and thanks for any assistance you can give!
Attached Images
 

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>