• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dialogue Box

JudeMarcus

New Member
Hello Team,
Please refer to the attached sample file. I am looking for a macro which pops up a dialogue box saying" Sorry no data available" when there is no data in the table. And whenever there is any data updated in the table then there shouldn't be any pop up box appearing

Thank You
 

Attachments

  • Sample file.xlsx
    10 KB · Views: 2
Hi !

Respecting TEBV rule, something like

If [COUNTA(B6:F19)] = 0 Then MsgBox "No data !"

As a reminder : « The better explanation, the better answer … »
 
Apologies for the inconvenience. Let me rephrase my requirement

1)Data in Sheet 2 is connected with Sheet 1. There will be scenarios where based on the data of Sheet 1, Sheet 2 will be having no values to display

2) Therefore on this instance when there is no values to be displayed in table of sheet 2, then there should be a message box as "NO UNITS"

Have attached the revised sample file

Hope this will suffice

Thank You
 

Attachments

  • Sample file.xlsx
    11.5 KB · Views: 3
Back
Top