Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello All,
I am working with a userform and need to have a named range value returned as a format number.
Currently my named range ("PrgB") returns the value = 51.515151
I need to have this format as a 2 digit number = 51 but cant seem to get this done. Any help is appreciated!
my partial code
I am working with a userform and need to have a named range value returned as a format number.
Currently my named range ("PrgB") returns the value = 51.515151
I need to have this format as a 2 digit number = 51 but cant seem to get this done. Any help is appreciated!
my partial code
Code:
Sub Code()
Dim pctCompl As Single
Dim Nm1 As Range
Set Nm1 = Range("PrgB")
MsgBox Nm1