Hi ,
When you declare a subroutine as :
Sub RunProcessBar(ByVal num as Long)
the procedure will accept a parameter that is of type
Long ; this means that the parameter can only have integer values within specified limits ; see this link for details :
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/data-types/long-data-type
If you want the input to be a decimal value , use the type identifier
Single or
Double , as in :
Sub RunProcessBar(ByVal num as Single)
Sub RunProcessBar(ByVal num as Double)
Narayan