excel vba-循环时做 - 在单元格中约会
我想增加定居日期(分配给单元N13),直到网络天数(分配给单元P11)达到3。
网络天数计数两个日期之间的工作日数量不包括假期。但是,我为此增加了一系列假期。
Sub Settlement_Date()
Do While Cells(16, 12) < 3
Cells(14,11)
Loop
I want to increase the settlement date which is (assigned to cell N13) until the network days (assigned to cell P11) reaches 3.
Network days counts the number of weekdays between two dates excluding holidays. However, I added a range of holidays to it.
Sub Settlement_Date()
Do While Cells(16, 12) < 3
Cells(14,11)
Loop
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要在循环中增加
单元格(14,11)
,请将该行更改为to increase
Cells(14,11)
within the loop, change that line to设法自己做,但是在我在这里找到的一些帖子中读了片段
移动一个单元格
使用VBA 在单元格中添加一天
Managed to do it myself but got snippets in some of the post I found here
Moving Right One Cell
Add one day to date in cells using VBA