Getting around the Max String size in a vba function?

前端 未结 6 1315
北海茫月
北海茫月 2020-11-28 15:57

The max number of characters you can use in string in a vba function is 255. I am trying to run this function

Var1= 1
Var2= 2
.
.
.
Var256 =256

RunMacros=          


        
6条回答
  •  孤城傲影
    2020-11-28 16:12

    Are you sure? This forum thread suggests it might be your watch window. Try outputting the string to a MsgBox, which can display a maximum of 1024 characters:

    MsgBox RunMacros
    

提交回复
热议问题