Array from Range in Excel VBA

前端 未结 5 767
孤独总比滥情好
孤独总比滥情好 2020-12-18 02:07

Well I\'ve been struggling with the little bit of code and can\'t seem to get around it ... I\'m trying to get an array from a range of cells, the array however is showing u

5条回答
  •  旧时难觅i
    2020-12-18 02:37

    Try this:

    Dim item As Variant
    MsgBox Range("D19:H19").Count
    item = Application.Transpose(Range("D19:H19").Value)
    MsgBox LBound(item) & " " & UBound(item)
    

提交回复
热议问题