1
返回數組我有一個表如何使用VLOOKUP
date number
01/14 1324e3
01/15 134d32
01/14 15233t
01/13 1s3634
01/14 133624
我需要得到一個String
正是這樣'1324e3','15233t','133624'
,我。即對應的01/14
Public Function getString (myDate As Variant) As String
Dim ws2 As Worksheet
Set ws2 = This.Workbook.Worksheets("Sheet1")
getString = Application.Vlookup(myDate, ws2.Range("A:B"),2,false)
End Function
所有時間工作正常,但只返回一個值,我怎麼能糾正呢?