Hi, I´m having problems calling a macro.
Private Sub Worksheet_Change is located in sheet1
with the following code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$c$5" Then
Call Macro3
End If
End Sub
Macro3 is located in Module2 in the same workbook and works fine on its own with the following code:
Sub Macro3()
'
' Macro3 Macro
'
NewName = Range("c5").Value
name2 = Range("c6").Value
name3 = Range("c7").Value
ActiveSheet.Name = NewName & "_" & name2 & "_" & name3
End Sub
Nothing happens when I enter a valur into cell c5, any ideas what I´m doing wrong?
Private Sub Worksheet_Change is located in sheet1
with the following code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$c$5" Then
Call Macro3
End If
End Sub
Macro3 is located in Module2 in the same workbook and works fine on its own with the following code:
Sub Macro3()
'
' Macro3 Macro
'
NewName = Range("c5").Value
name2 = Range("c6").Value
name3 = Range("c7").Value
ActiveSheet.Name = NewName & "_" & name2 & "_" & name3
End Sub
Nothing happens when I enter a valur into cell c5, any ideas what I´m doing wrong?