Ok I am new to VBA. I am trying to create a program that will draw lines for me on my profile.

My problem is that I have created several radio buttons that when selected I want to have them set a variable for the horizontal and vertical scale. I dont understand how to have my function setvscale(called when I click the radio button) set a variable(say vscale) that all the other funtions(i.e. my drawlinebyslope button) in my program can see.

Hmm, was that total giberish? Or did somebody understand that?

I know this is a really basic issue, but I really am new to this.

Anyone got some code examples that might help me here?

Thanks!