Word Formel Monat -1
Hallo,
ich habe folgende Formel im Word 2016
{ = ({ date \@ "MMMM" } -1) }
jetzt bringt mir diese nach dem aktualisieren folgenden Fehler...
!Textmarke nicht definiert, NOVEMBER
Ich möchte einfach nur den aktuellen Monat -1 anzeigen lassen.
MfG
Florian
ich habe folgende Formel im Word 2016
{ = ({ date \@ "MMMM" } -1) }
jetzt bringt mir diese nach dem aktualisieren folgenden Fehler...
!Textmarke nicht definiert, NOVEMBER
Ich möchte einfach nur den aktuellen Monat -1 anzeigen lassen.
MfG
Florian
Please also mark the comments that contributed to the solution of the article
Content-Key: 392454
Url: https://administrator.de/contentid/392454
Printed on: April 19, 2024 at 04:04 o'clock
3 Comments
Latest comment
From "strings" like "november" you cannot subtract a number... .
{ ={DATE \@ "MM"}-1 }
Sure.
Just create a bookmark name it according to your needs modify it in the code below) and set the contents of it to your date calculation
Just create a bookmark name it according to your needs modify it in the code below) and set the contents of it to your date calculation
ActiveDocument.Bookmarks("my_custom_marker").Range.Text = Format(DateAdd("m", -1, Date), "MMMM")