S
Sok Hong
How do you set the commands that if the activecell is null
or blank, it carries out certain commands? This is the
syntax I have right now, but the null command doesn't seem
to be working correctlly. Please help, thank you.
If ActiveCell Is Null Then
Selection.AutoFill Destination:=Range(Cells("33",
ActiveCell.Column - 1), Cells("33", ActiveCell.Column)),
Type:=xlFillDefault
Range("B30").End(xlToRight).Select
ActiveCell.Offset(rowOffset:=6, columnOffset:=-1).Select
Range(Cells("36", ActiveCell.Column - 1), Cells("40",
ActiveCell.Column - 1)).Select
Selection.AutoFill Destination:=(Range(Cells("36",
ActiveCell.Column - 1), Cells("40",
ActiveCell.Column)).Select), Type:=xlFillDefault
End If
or blank, it carries out certain commands? This is the
syntax I have right now, but the null command doesn't seem
to be working correctlly. Please help, thank you.
If ActiveCell Is Null Then
Selection.AutoFill Destination:=Range(Cells("33",
ActiveCell.Column - 1), Cells("33", ActiveCell.Column)),
Type:=xlFillDefault
Range("B30").End(xlToRight).Select
ActiveCell.Offset(rowOffset:=6, columnOffset:=-1).Select
Range(Cells("36", ActiveCell.Column - 1), Cells("40",
ActiveCell.Column - 1)).Select
Selection.AutoFill Destination:=(Range(Cells("36",
ActiveCell.Column - 1), Cells("40",
ActiveCell.Column)).Select), Type:=xlFillDefault
End If