I tried that and I am no longer receiving an error however I added a watch to x and its value remains empty the whole time, thus returning and empty MsgBox