Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oh, my mistake..... I was assuming that your decimal
digit was stored in Cell A1. So, if your decimial number is stored in A1, then that code will work and it will save the value in variable x! "Robert Crandal" wrote in message ... How's this for a crazy solution: Dim x as Integer x = Left(Right(Sheet1.Range("A1").Text, 2), 1) I think that returns what u want?? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extract decimal and convert to integer | Excel Discussion (Misc queries) | |||
integer with decimal display | Excel Discussion (Misc queries) | |||
Convert 2 digit month to 4 digit years and months | Excel Worksheet Functions | |||
VBA to identify last digit in integer | Excel Programming | |||
Create number format for 4 digit integer preceded by zero | Excel Worksheet Functions |