nouseforaname1982
Board Regular
- Joined
- May 25, 2004
- Messages
- 73
I have made the following function to return a referenced cell's value if there is one, but will leave the cell blank if there is nothing in the cell.
Can you think of any ways to improve this code? Add functionality to it? Maybe with some optional variables?
Post if you have suggestions.
Function IFBLANK(MyRange As Range) As Variant
If MyRange = "" Then IFBLANK = "" Else IFBLANK = MyRange
End Function
Can you think of any ways to improve this code? Add functionality to it? Maybe with some optional variables?
Post if you have suggestions.
Function IFBLANK(MyRange As Range) As Variant
If MyRange = "" Then IFBLANK = "" Else IFBLANK = MyRange
End Function