警告单元格值不正确
我的问题:我有两个系列 R16 和 R01。这些范围是通过滑动每个范围然后在工作表的左上面板中重命名它们来设置的。每个范围都要求用户在每个单元格中填写一个值。 R16 要求用户输入 0 到 5 之间的数字。范围 R01 要求输入 0 或 1 的值。这两个范围内的任何单元格中的任何单元格都不能留空。这些范围和要求仅特定于本表。如果用户输入数字时,如果输入的值超出了参数设置,会出现类似[无效输入]的错误消息,那就太好了。例如,在 R16 中,如果有人输入 12 或 -1,他们就会收到警报。最后,当用户按下页面上的按钮以在单独的进程中使用这些值时,必须检查没有单元格留空。如果不满足上述参数,我正在尝试找到一种方法来停止宏的运行(通过按钮)。谢谢
My problem: I have two ranges R16 and R01. These ranges were set up by swiping each range and then renaming them in the upper left panel of the sheet. Each range requires users to fill in each cell with a value. R16 requires users to enter a number of 0 through 5. The range R01 requires a value of 0 or 1 to be entered. NO cell can be left blank in any cell within these two ranges. These ranges and requirements are specific to this sheet only. It would be nice if at the time of user entering a number, an error message appeared like [invalid entry] if the value inputted was outside parameters set. For example, in R16, if someone entered 12 or -1 they would be alerted. Finally when the user presses a button on the page to use these values in a separate process, it is essential to check that no cell is left blank. I am trying to find a way to halt the running of the marco (via the button) if these parameters above are not met. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第一部分不需要编程,这是 Excel 中的一个内置功能,称为“验证”。你的问题的第二部分,按下按钮,需要一个宏来检查两个单元格。
You don't need programming for the first part, this is a built-in feature in Excel called "Validation". The second part of your question, the pressing of the button, requires a macro that checks both cells.