启用宏才行 Dim aa, bb Private Sub Workbook_Open() aa = ActiveSheet.Name bb = ActiveSheet.Index End Sub Private Sub Workbook_SheetActivate(ByVal Sh As Object) aa = ActiveSheet.Name bb = ActiveSheet.Index End Sub Private Sub Workbook_SheetDeactivate(ByVal Sh As Object) On Error Resume Next If Sheets(bb).Name <> aa Then Sheets(bb).Name = aa End Sub Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) On Error Resume Next If Sheets(bb).Name <> aa Then Sheets(bb).Name = aa End Sub
[此贴子已经被作者于2007-8-29 15:59:39编辑过] |