Get formatted values from a multi-cell range

前端 未结 5 1405
死守一世寂寞
死守一世寂寞 2021-01-02 04:37
Dim myText As String
myText= Range(\"a3\").Text

Returns the formatted value in cell A3, but

myText= Range(\"a3:c7\").Text
<         


        
5条回答
  •  暖寄归人
    2021-01-02 05:12

    For Each c In Range("a3:c7")
        ItemName = c.Text
    Next c
    

    This will give you each cell one after the other.

提交回复
热议问题