Hi YellowLabPro,
The below function will take a number in decimals of an inch, return a string in the format "12'-3 3/16", if iInches is True then "147 3/16". None of the Variables are dimensioned as they should be, this is something that I butchered in a hurry (I don't know why I was in a hurry
). If you can't find yours we might be able to modify this if you would like.
[vba]
Public Function GenFraction$(iAnum, Optional iInches = False)
mFRC = Split( _
" 1/16, 1/8, 3/16, 1/4, 5/16, 3/8, 7/16, 1/2, 9/16, 5/8, 11/16, 3/4, 13/16, 7/8, 15/16", ",")
mFt = "'-"
mBNUM = iAnum / 12
mINUM = Int(Round(mBNUM, 4))
mCNUM = mBNUM - mINUM
mCNUM = Round(mCNUM, 6) * 12
[/vba]