【发布时间】:2013-10-05 09:55:18
【问题描述】:
如果输入框的答案是yes,我想运行一个宏。
因此,每次运行其他宏时都需要询问该问题,我需要询问该问题,直到用户在他们需要的所有日期完成宏。
我把输入框放错地方了,但不知道该放哪里。
Call ChangeDates
strMore = Application.InputBox(prompt:="Do you have any more dates to enter? Type Yes or No", Type:=2)
Do Until strMore = "no"
If strMore = "yes" Then
Call ChangeDates
End If
strMore = Application.InputBox(prompt:="Do you have any more dates to enter? Type Yes or No", Type:=2)
Loop
【问题讨论】: