How Do I Convert an Integer to a String in Excel VBA?

后端 未结 10 1776
遥遥无期
遥遥无期 2020-12-07 15:53

How do I convert the integer value \"45\" into the string value \"45\" in Excel VBA?

10条回答
  •  我在风中等你
    2020-12-07 16:34

    In my case, the function CString was not found. But adding an empty string to the value works, too.

    Dim Test As Integer, Test2 As Variant
    Test = 10
    Test2 = Test & ""
    //Test2 is now "10" not 10
    

提交回复
热议问题