Stepper motor and variables not working together

At this point, snippits of both codes that you used will help. What worked and what did not work? Can we guess you put the specific speed value into the variable before you called the motor to move?