0

会計年度の開始に向けて、ユーザーフォームに変数を入力しています。入力された日付が会計年度の開始日でない場合にユーザーにプロンプ​​トが表示されるように、エントリを検証できるようにしたいと考えています。

たとえば、私の会計年度の開始日は 2012 年 7 月 1 日なので、2012 年 7 月から 2013 年 6 月までの月のレポートを実行していた場合、Financial is enter エラー メッセージが表示されません。しかし、実行している月次レポートが「2013 年 7 月」または「2013 年 8 月」で、入力した YTD が「2012 年 7 月」の場合、「入力した YTD をリセットしますか?」というアラートが必要です。

ありがとう。

4

1 に答える 1

0

There is a lot you aren't explaining... your first example is a 12-month report, then later you mention monthly reports. Using your example, if the monthly report is running starts Aug 2013. Is the user input that raises the prompt ALWAYS wrong, or only sometimes?

Regardless, things like the first day of the year don't change. Why not simply hardcode the first day of the last & next 20 (?) fiscal years, and verify the user's input matches one of them. I would actually suggest in-cell Data Validation (validating against a List comprised of the first days) but you stated you were using a UserForm.

于 2012-11-22T06:34:57.813 に答える