i'm trying to write a small app which will have one main User Form...
usually i get around variables by writing and retrieving data to/from worksheet cells...
this time around though i'd like to see if i could do everything right in the vba (ie instead of going to the worksheet)...
here's a part of what i'd like to do...
1) when the form loads up i run a module to initialize the form and variables...eg let's say i have a variable vStatus that I want to hold the value new.....----- vStatus="New"
2) on the form i have multiple command buttons ....i want to read the value of vStatus and if it's New then if i hit one group of buttons (let's say the group of buttons i have at the top of the form) i want to change vStatus to a new value eg...."Top" and if i hit another group of buttons (let's say the group of buttons at the bottom of the form) then i want to change vStatus to "Bottom"
I'm sure it's not very difficult but i've never really done anything like this without storing and retrieving from worksheet cells...so any help would be great...thanks...
usually i get around variables by writing and retrieving data to/from worksheet cells...
this time around though i'd like to see if i could do everything right in the vba (ie instead of going to the worksheet)...
here's a part of what i'd like to do...
1) when the form loads up i run a module to initialize the form and variables...eg let's say i have a variable vStatus that I want to hold the value new.....----- vStatus="New"
2) on the form i have multiple command buttons ....i want to read the value of vStatus and if it's New then if i hit one group of buttons (let's say the group of buttons i have at the top of the form) i want to change vStatus to a new value eg...."Top" and if i hit another group of buttons (let's say the group of buttons at the bottom of the form) then i want to change vStatus to "Bottom"
I'm sure it's not very difficult but i've never really done anything like this without storing and retrieving from worksheet cells...so any help would be great...thanks...