I am trying to write a macro that looks at a cell and tells me if it's empty, and if it is, open up an input box to fill in the cell. The below code is not opening the message box regardless if the cell is empty or not. C37 IS A MERGED CELL which I know could be mucking things up. What am I missing here?
If IsEmpty("C37") Then
Dim SIGN As String 'Sign-off
SIGN = InputBox("Enter Your Name:", "Dispositioned By:")
Range("C37").Value = SIGN
Range("G37").Value = Format(Now(), "MM/DD/YYYY")
Else
Range("B26").Select
End If
UPDATE:
With ActiveSheet
If IsEmpty(ActiveWorkbook.ActiveSheet.Range("C23")) Then
Dim SIGN As String 'Sign-off
SIGN = InputBox("Enter Your Name:", "Dispositioned By:")
Range("C23").Value = SIGN
Range("G23").Value = Format(Now(), "MM/DD/YYYY")
Else
Range("B13").Select
End If
End With
Is the new code I've ended up with. This is not opening the inputbox even when the cell is "empty"
Is there a different phrase I should be using than IsEmpty?