M
Michelle Hillard
Hi guys,
I just wanted to know what is good programming practice with the If Else
statement.
I have the following code which works, but I have no Else statement if the
"y" does not exist. Should I put something in the Else part if "y" does not
exist, even though this code works?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
ThisRow = Target.Row
If Target.Value = "y" Then
Application.Run "Book1.xls!MoveRowsWithYinColumnD"
Else
End If
End If
End Sub
Thanks in advance
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"
Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
I just wanted to know what is good programming practice with the If Else
statement.
I have the following code which works, but I have no Else statement if the
"y" does not exist. Should I put something in the Else part if "y" does not
exist, even though this code works?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
ThisRow = Target.Row
If Target.Value = "y" Then
Application.Run "Book1.xls!MoveRowsWithYinColumnD"
Else
End If
End If
End Sub
Thanks in advance
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"
Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com