Where the syntax error occurs you have inadvertently placed the "of { NUMPAGES }" part inside the preceding field code. Just redisplay field codes and move it out. Then update the fields with F9.
__________________
Stefan Blom
Microsoft Word MVP
Microsoft 365 apps for business
Windows 11 Professional
|