Link to home
Start Free TrialLog in
Avatar of msukow
msukowFlag for United States of America

asked on

Visual Basic "Error! AutoText Entry not defined" error

I have the following code:
.Range.Fields.Add(.Range, Microsoft.Office.Interop.Word.WdFieldType.wdFieldEmpty, "AUTOTEXT  ""Page X of Y"" ", True)

It worked correctly using Word 2002 SP3. However, when creating a Word document to Word 2007, "Error! AutoText Entry not defined" appears instead of "Page 1 of 8", for example.
ASKER CERTIFIED SOLUTION
Avatar of Skiboy9
Skiboy9
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msukow

ASKER

Thanks - it will take me about a week to get to this issue - priorities have changed so this is now on the back burner.