我卡在這裏。下面是我的vba宏。我想查找其他選項卡,但結果只給我
=VLOOKUP(BE2, $BQ$2:$BQ$6, 1, 0)
但不是標籤名稱..爲什麼?我如何獲取表單名稱?無法獲取VBA宏中的選項卡值(名稱)
Set myValues = Application.InputBox("Please select a:", Type:=8)
Set myResults = Application.InputBox("Please select a next sheet:", Type:=8)
On Error Resume Next
Set myValues = myValues.Offset
FirstRow = myValues.Row
FinalRow = Cells(65536, myResults.Column).End(xlUp).Row
Range("BF2").Formula = _
"=VLOOKUP(" & Cells(FirstRow, myValues.Column).Address(False, False) & ", " & _
" " & myResults.Address & " , 1, 0)"
非常感謝。 – 2014-09-26 05:26:05