Dear All,
I have used macro from this forum, it is working and some time appear run time error 13, type mismatch and show windows for debug. during run time error it highlighted this line- If Target = "" Then
Please help me how can I get solution.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim v As Long, ws As Worksheet
Set ws = ActiveSheet
If Target = "" Then
If sName <> "" Then
If MsgBox("Delete the sheet named """ & sName & """?" & vbLf & vbLf & "(Are you sure to delete press YES)", vbYesNo + vbQuestion) = vbNo Then
Exit Sub
I have used macro from this forum, it is working and some time appear run time error 13, type mismatch and show windows for debug. during run time error it highlighted this line- If Target = "" Then
Please help me how can I get solution.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim v As Long, ws As Worksheet
Set ws = ActiveSheet
If Target = "" Then
If sName <> "" Then
If MsgBox("Delete the sheet named """ & sName & """?" & vbLf & vbLf & "(Are you sure to delete press YES)", vbYesNo + vbQuestion) = vbNo Then
Exit Sub