问题描述
我需要在Word 2003文档中显示当月之后的月份名称.
I'm needing to display the name of the month after the current month in a Word 2003 document.
显示当前月份非常容易:
It's fairly easy to display the current month:
{ DATE \@ "MMMM" }
在撰写本文时,显示为:9月
At the time of this writing, this displays: September
我想展示的是十月……而对于我一生来说,我无法确定需要做什么.
What I'm wanting to display is October...and for the life of me I cannot work out what needs to be done.
我一直在尝试遵循 addbalance 上的建议,但运气不佳:
I've been trying to follow the advice on addbalance but without much luck:
{ = { Date \@ "MMMM" } + 1 }
有人知道我需要写什么命令才能完成这个看似简单的任务?
Does anyone know what command I need to write to be able to accomplish this seemingly simple task?
推荐答案
您可以使用QUOTE字段来执行此操作.该文档包含一个 显示上个月 ,可以轻松修改以显示下个月:
You can use a QUOTE field to do so. The documentation contains an example to show the previous month, which could be easily modified to show the next month:
{ QUOTE "1.{ IF { DATE \@ "M" }=12 "1" "{ = { DATE \@ "M" }+1} }.2010" \@ "MMMM"}
请注意,您可能需要更改IF字段生成的日期的格式,以匹配您当前的语言环境设置. { IF { DATE \@ "M" }=12 "1" "{ = { DATE \@ "M" }+1} }
部分用于获取下个月,并应用于生成完整的(假想的)日期,例如1.<nextmonth>.2010
或<nextmonth>/01/05
.
Note that you probably need to change the format of the date generated by the IF field to match your current locale settings. The part { IF { DATE \@ "M" }=12 "1" "{ = { DATE \@ "M" }+1} }
is used to get the next month and should be used to generate a complete (imaginary) date, e.g. 1.<nextmonth>.2010
or <nextmonth>/01/05
.
这篇关于如何在Microsoft Word字段中显示下个月?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!