Hi, Hope All are fine.
I am having a problem creating a popup message box with conditions.
The fact is if the Target Cell range (AI9:AI1200) is 0 then it shows a specific message
if the Target Cell range (AI9:AI1200) is 1 then it shows another specific message.
If error then shows another message.
I am using the below code, please help me to change this code with the above condition.
Code
Sub Date_Info()
On Error GoTo ErrorHandle
Dim x, w
Dim y, z As Integer
Dim MyNum, MyNum1, MyNum2 As String
MyNum = Range("P3").Value
MyNum1 = Range("Q3").Value
MyNum2 = Range("R3").Value
Set x = CreateObject("WScript.Shell")
y = x.Popup(" Bill Amount:= " & MyNum _
& vbNewLine & "To Audit : " & MyNum1 _
& vbNewLine & "Note Approved Date : " & MyNum2, 6, MyNum)
Set x = Nothing
Exit Sub
ErrorHandle:
'MsgBox " No Data Found ", 8, "Info?"
Set w = CreateObject("WScript.Shell")
z = w.Popup("Sorry, No Data Found.", 3, "Date Info?")
End Sub
Display More
I anything is not understandable then please tell me I will try to explain better.
A sample file will be enough for me to understand better.
Any help will be appreciatable.
Thanks and best regards.