I have a text of 1500 charachtars. I want to store it in a VBA variable
A "string" data type can contain up to 2 billion charahtars but I dont how to use it. I have a long text(1500 characters). But when defining my variable it gets cut of after first 255 charachters. How do I make my string contain 1500 charachtars?
Here's my code
sub test ()
dim tmp as String
tmp = " my long text string of roughly 1500 charachters "
end sub
I have also tried:
sub test ()
dim tmp as String * 1500
tmp = " my long text string of roughly 1500 charachters "
end sub
Or maybe I should use another data type than string?
Bookmarks