I want a Word date field code to list the previous month

S

Suzanne

For example, if the month is "December", I want the field code to show
"November"

Thanks -- Suzanne
 
T

Tony Jollans

This isn't VBA but here is a field code which should do it (if I type it
correctly :))

{ Quote { = { If { Date \@ "MM" } = 1 12 { = { Date \@ "MM" } - 1 } }* 100 +
1 \# "0000/00/00" } \@ "MMMM" }

with all braces entered via Ctrl+F9
 
Top