R
Ronbo
With the following code I get the error message " "Type mismatch" on "Set
s2". What am I doing wrong?
Dim s1 As Worksheet, s2 As Worksheet
Dim sName As String
sName = Range("n7")
Worksheets.Add(After:=Sheets(Sheets.Count)).Name =
ActiveSheet.Range("n7").Value
Set s1 = ActiveSheet
Set s2 = sName
Thanks,
Ronbo
s2". What am I doing wrong?
Dim s1 As Worksheet, s2 As Worksheet
Dim sName As String
sName = Range("n7")
Worksheets.Add(After:=Sheets(Sheets.Count)).Name =
ActiveSheet.Range("n7").Value
Set s1 = ActiveSheet
Set s2 = sName
Thanks,
Ronbo