¿Cómo debo definir cadenas grandes en VBA? ¿Hay una mejor manera que codificar algo como el de abajo?¿La mejor manera de definir una cadena vba grande, es decir, el equivalente heredoc?
Dim largeString as String
largeString = "This is a long block of text that I want to fill " & _
"into a form field. I need to make sure I pay attention " & _
"to spacing and carriage return issues while doing so. " & _
"I also have to use quotes liberally, the concatenation " & _
"operator, and the continuance underscore to make sure " & _
"VBA can parse my code." & vbCr & vbCr & _
"It's kind of a pain in the ass and I wish I could use " & _
"a heredoc instead, letting me copy and paste the block" & _
"of text I need from another source and shove it into " & _
"a string."
Editar: Uf, y hay un límite de 25 líneas de continuación también? Tanto para sangrado agradable y 80 caracteres de ancho, que solo me da suficiente espacio para un par de párrafos decentes.
o crea un String on fly 'Dim s como String' y' s = String (1337, "a") ' –