THETORBY5
Your code, i am assuming here, references the sheets by name not by sheet number. You need to change these references to variibles
something like this
dim shtName as string
shtName = Sheets(1).Name'or what ever the sheet reference number is
Sheets(shtName)' and what ever you were doing with the sheet name to follow here
To do the reverse:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Sheets(2).Name = "MySheet"
End Sub
Yours in EXCELent Frustration
KniteMare
_________________
Of course I can, and it will take only 900 hours of programming time to do it.
This message was edited by KniteMare on 2002-08-23 12:05