View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
bgeier[_23_] bgeier[_23_] is offline
external usenet poster
 
Posts: 1
Default VBA to identify last digit in integer


Why convert to string, just test the numeric value itself

debug.print right(12345,1)
debug.print right(intValue,1)

either way works with out converting to a string


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=546104