You will be able to do it soon. Just keep plugging away the way you are now.
Its how I learned too.
Cell Address can be fixed. Notice how I added the & .Address(False,False) to the InputBox and now it shows.
Just like the Msgboxes which show the address.
As for the 0. That was my fault.
It checks for Column A being 0.
Try this code:
For Each rCell In rng
If Not IsEmpty(rCell) Then
If IsEmpty(rCell.Offset(0, 1)) Or Not IsNumeric(rCell.Offset(0, 1)) Or rCell.Offset(0, 1) = 0 Then
MyNum = Application.InputBox("Enter Number for Cell " & rCell.Offset(0, 1).Address(False, False))
If MyNum = False Then
MsgBox ("You must enter a numeric value in " & rCell.Offset(0, 1).Address(False, False))
rCell.Offset(0, 1).Select
Exit Sub
Else
If IsNumeric(MyNum) = False Then
MsgBox ("You must enter a numeric value in " & rCell.Offset(0, 1).Address(False, False))
rCell.Offset(0, 1).Select
Else
rCell.Offset(0, 1).Value = MyNum
End If
End If
End If
End If
Next rCell
Bookmarks