hello

I have to do the following logic in many places using different variables & control names, but essentially doing the same logical operations. I am trying to write a sub that can be called to do the work so I don't have to replicate this over & over

if cmdStart(0).value=CmdStop(4).value then
Call VscPot2_Change(0)
CmdStop(4).value =cmdStart(0).value+1
else
CmdStop(4).value =0
end if

I need a sub such as CHECKIT(Parm1,Parm2,Change1) where the parameters in this example are: cmdStart(0).value, CmdStop(4).value , Call VscPot2_Change(0)

I think this should be doable---but how do you pass & act on these "Names"? I'm not sure what these "Names" are called in Vb lingo, so its hard to do a search!