I am really confused.
I am running the following macro.
However, I get the error message #13 and says type mismatch. When I hit debug, the following red line is highlighted from a separate macro which I have in the worksheet.
Any solution?
Thanks.
I am running the following macro.
Rich (BB code):
Sub StartNew()
'
' StartNew Macro
'
'
Range("E29,E30,J30,J29,L29,L30").Select
Range("L30").Activate
Application.CutCopyMode = False
Selection.ClearContents
Range("B28").Select
Selection.Copy
Range("B28,N25,N26,N27,N28").Select
Range("N28").Activate
ActiveSheet.Paste
Range("B72").Select
Application.CutCopyMode = False
Selection.Copy
Range("B72,E25,J25,L25").Select
Range("L25").Activate
ActiveSheet.Paste
Range("B30:B33").Select
Application.CutCopyMode = False
Selection.Copy
Range("D19").Select
ActiveSheet.Paste
Range("B35:B47").Select
Application.CutCopyMode = False
Selection.Copy
Range("D3:D15").Select
Range("D15").Activate
ActiveSheet.Paste
Range("B9").Select
Application.CutCopyMode = False
Selection.Copy
Range("B9,O16,O20").Select
Range("O20").Activate
ActiveSheet.Paste
Range("O4:O15").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("O4").Select
End Sub
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
[COLOR=#FF0000] If Target.Value = "No" Then[/COLOR]
Target = "Yes"
ElseIf Target.Value = "Yes" Then
Target = "No"
End If
End Sub
Thanks.
Last edited by a moderator: