The byte data type can contain any positive number between 0 and 255.
This can be used to contain binary data.
This data type uses 1 byte
The default value is 0.
Only positive numbers can be stored in this data type.
Assigning a negative number to a byte variable will generate a run-time error.
Assigning a number greater than 255 will generate a run-time error.
When converting a Boolean variable to a numeric VBA data type, TRUE becomes -1 and FALSE becomes 0.
When converting a numeric VBA data type into a Boolean, 0 becomes FALSE and all other values (regardless of whether they're negative or positive) become TRUE.
© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext