IA: AutoNum Field Values Disappear on HTML ExportLast reviewed: February 5, 1998Article ID: Q142332 |
The information in this article applies to:
SYMPTOMSWhen you convert a Word document that contains either the AutoNum, AutoNumLgl, or AutoNumOut fields to an HTML document, the field results are not retained. All other field values are converted.
CAUSEThe AutoNum fields are deleted on export. Internet Assistant attempts to unlink the field on export. Since the AutoNum fields cannot be unlinked, they are deleted.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Internet Assistant for Word, versions 1.0, 1.0z, 2.0z. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
RESOLUTIONUse the following macro to replace all AutoNum, AutoNumLgl, or AutoNumOut fields with Sequence or Seq fields. Then, when you convert your document to HTML, the field values will be retained. WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Sub MAINEndOfDocument X = ViewFieldCodes() ViewFieldCodes 1 EditFind .Find = "^19 AUTONUM", .Direction = 1, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format = 0, .Wrap = 1, .FindAllWordForms = 0 While EditFindFound() EditBookmark .Name = "Test", .SortBy = 0, .Add CharRight 1 InsertField .Field = "REF Test \* MERGEFORMAT" CharLeft 1, 1 UpdateFields UnlinkFields CharLeft 1 CharLeft 1, 1 EditClear EditFind .Find = "^19 AUTONUM", .Direction = 1, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format = 0, .Wrap = 1, .FindAllWordForms = 0Wend EndOfDocument EditFind .Find = "^19AUTONUM", .Direction = 1, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format = 0, .Wrap = 1, .FindAllWordForms = 0 While EditFindFound() EditBookmark .Name = "Test", .SortBy = 0, .Add CharRight 1 InsertField .Field = "REF Test \* MERGEFORMAT" CharLeft 1, 1 UpdateFields UnlinkFields CharLeft 1 CharLeft 1, 1 EditClear EditFind .Find = "^19AUTONUM", .Direction = 1, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format = 0, .Wrap = 1, .FindAllWordForms = 0Wend ViewFieldCodes X End Sub |
KBCategory: kbusage buglist1.0 buglist1.0z buglist2.0z
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |