How to convert a String to a Range Object

后端 未结 6 1505
名媛妹妹
名媛妹妹 2021-01-23 22:44

Is there anyway to convert a string value to a Range object ? I\'m having a function which takes a Range object as a argument and need to pass a single string parameter to it

6条回答
  •  [愿得一人]
    2021-01-23 23:24

    A string with a cell address? if so:

    Dim r As Range: Set r = Range("B3")
    MsgBox r.ColumnWidth
    

提交回复
热议问题