n$ = STRING$(6-LEN(n$), "0") + n$
or
num$ = STRING$(6, "0")
MID$(NUM$, 6 - LEN(n$) + 1, LEN(n$)) = n$
MID$ allows you to set string characters or read certain characters. MID$(String, StartIndex, NumChars) it can be used as an assignment or as a value returning function...