Thanks for the response Lee, but when I make the changes, I get an error "Object Expected". Here is the code as I changed it:
=========
sub PopulateTextbox()
dim x, scX, space_comp, taskid, minper, spacetype, newtime, checktime, varnum
x = 0
varnum = 2
scX = 0...