Hi I have written a macro below the checks for 0 in column AE and if it finds it opens an input box to enter a number over 0. This then replace the cell with the value entered.
However due to my limited knowledge I can only do it with one specific cell. Is there a way I can get it to check cells one by one in a column.
I.e start at cell AE1 going down the colours and check for cells containing 0. Then prompting input box each time a cell meeting this criteria is meet.
Below is my current macro.
Sub ENTER_VALUE()
Dim FileImport As String
Dim AnsBool As Boolean
AnsBool = True
If Range("AH11") = 0 Then
FileImport = InputBox("MISSING INVOICE AMOUNT, Please Provide Amount")
Do While AnsBool
If StrPtr(FileImport) = 0 Then Exit Sub
If FileImport <> "" Then Exit Do
MsgBox "Please Provide Reasoning"
FileImport = InputBox("MISSING INVOICE AMOUNT, Please Provide Amount")
Loop
End If
'You can change this to the range needed
Range("AH11").Value = FileImport
End Sub
However due to my limited knowledge I can only do it with one specific cell. Is there a way I can get it to check cells one by one in a column.
I.e start at cell AE1 going down the colours and check for cells containing 0. Then prompting input box each time a cell meeting this criteria is meet.
Below is my current macro.
Sub ENTER_VALUE()
Dim FileImport As String
Dim AnsBool As Boolean
AnsBool = True
If Range("AH11") = 0 Then
FileImport = InputBox("MISSING INVOICE AMOUNT, Please Provide Amount")
Do While AnsBool
If StrPtr(FileImport) = 0 Then Exit Sub
If FileImport <> "" Then Exit Do
MsgBox "Please Provide Reasoning"
FileImport = InputBox("MISSING INVOICE AMOUNT, Please Provide Amount")
Loop
End If
'You can change this to the range needed
Range("AH11").Value = FileImport
End Sub