EXCEL - 下拉和填充单元格
晚安。
我在完成我需要做的事情时遇到了一些麻烦。
我的工作表中有一些单元格需要每天手动填充。
我还有一个包含所有月份的下拉菜单,还有一个包含日期的下拉菜单。
是否可以将所选下拉值的数据保存在特定单元格中?
比如每天在相同的单元格中维护不同的数据。
谢谢。
Good night.
I'm having some troubles to get what i need done.
I have some cells in a sheet that needs to be filled every day, manually.
I have also a dropdown with all the months, and another one with the days.
Is it possible to save data in specific cells for the selected dropdown values?
Something like for each day mantain different data in the same cells.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太清楚你的要求是什么。我认为您想要做的是:
这是正确的吗?如果是这样,您需要编写一个 VBA 宏来获取下拉列表的值并将它们写入您需要它们的单元格中(假设在您输入的文本旁边)。我想这会为你做到这一点。
它假设下拉值位于同一工作表的单元格 B1 和 C1 中。然后您可以将此宏链接到表单按钮。这非常简单,并且不会检查任何错误,例如是否未选择单元格。但这应该是一个很好的起点。
I'm not exactly sure what you are requesting. What I think you are trying to do is:
Is this correct? If so, you would need to need to write a VBA macro that would take the values of the dropdown and write them into the cells where you needed them to be (presume next to your entered text). I think this would do that for you.
It assumes that the dropdown values are in cell B1 and C1 of the same sheet.You could then link this macro to a Form button. This is very simple and doesn't check for any errors, like if there is no cell selected. It should be a good starting point though.