("Sheet1")
' Debug.Print udfSheetExists("Sheet1", "MyData.xlsx")
'End Sub
Function udfSheetExists(...,2列,3列,4列,5列
Sub into_arr(sht, star_n, end_n, sht_str, temparr, arr_star_n, n0, n1, n2, n3, n4, n5)...jj = arr_star_n
With sht
For i = star_n To end_n
If .Cells(i, n1) "" And ....Cells(i, n2) "" Then
temparr(jj, 1) = .Cells(i, n0)
temparr(jj, 2) = .Cells...(i, n1)
temparr(jj, 3) = .Cells(i, n2)
temparr(jj, 4) = .Cells(i, n3)