Dim S_Name, S_Formula As String, Y As Integer
Y = 1
For i = 1 To Worksheets.Count
S_Name = Worksheets(i).Name
If S_Name <> "目录" Then
Worksheets("目录").Range("b" & 2 + Y).Value = S_Name
S_Formula = "=HYPERLINK('#' & b" & 2 + Y & " & '!a1','点击选择[' & B" & 2 + Y & " & ']')" '就是这句,formula总是不对,请指教! 'MsgBox S_Formula
Worksheets("目录").Range("c" & 2 + Y).Formula = S_Formula
Y = Y + 1
End If
Next i