【发布时间】:2014-04-18 10:13:36
【问题描述】:
我正在使用此 VBA 代码为每个单元格值创建新工作表
Private Sub Worksheet_Change(ByVal Target As Range)
Dim wsNew As Worksheet
If Target.Cells.Count > 1 Then Exit Sub
On Error Resume Next
If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
Set wsNew = Sheets(Target.Text)
If wsNew Is Nothing Then Sheets.Add().Name = Target.Text
End If
End Sub
它工作正常,但工作表是在我想要它们之后的主工作表之前创建的,我想将这些单元格值作为超链接链接到它们各自的工作表。
谢谢
【问题讨论】: