Rookie mistakes, sorry for that. Changed "If x Is Nothing Then" to "If x = 0 Then" and this works perfectly fine.
Rookie mistakes, sorry for that. Changed "If x Is Nothing Then" to "If x = 0 Then" and this works perfectly fine.
Last edited by Djani; 03-22-2016 at 08:21 AM. Reason: solution found