lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I am trying to under variant data type and here it says:
"The Variant data type is capable of holding any type of data except fixed-length strings and user defined types."
what does "fixed-length" mean here? I tried this code and it works fine
is not "hello" fixed length? J here is variant because i did not define it, so the default is variant.
https://bettersolutions.com/vba/data-types/variant-data-type.htm
I am trying to under variant data type and here it says:
"The Variant data type is capable of holding any type of data except fixed-length strings and user defined types."
what does "fixed-length" mean here? I tried this code and it works fine
Code:
Sub testing()
For i = 1 To 10
j = "hello"
Cells(i, 1) = j
Next i
End Sub
is not "hello" fixed length? J here is variant because i did not define it, so the default is variant.
https://bettersolutions.com/vba/data-types/variant-data-type.htm
Last edited: