Hi Simon,
I've done some more poking around and noticed that the document appears to have been recovered. I can only guess as to what state it was in when the abend happened and exactly how it was recovered but I wouldn't be surprised if that were the source of the problem. The document
does have (at least the remains of) a VB Project (a UserForm?) - hence the warning - but it is not accessible via the VBE.
The document has an HTML Project, which is why I asked if you had saved it as HTML at any time, and it appears that the document and the HTML Project have got out of sync. The HTMLProject refers to an Edit-Time-Data file - this is where Word keeps elements of the document which don't translate into HTML (such as, but not limited to, a VB Project) so that they are available when the (HTML) document is opened for editing in Word. If you remove this reference in the Script editor (see below) the eventual contents of the edit-time data file are removed from the document and the VBProject and the warning are no more. If you do this, however, you may also lose various other (largely formatting) aspects of the document which may or may not be important to you (I can't tell as I don't have the document content). All that I can see are styles for footnote and endnote separators (which don't seem different from the default) which I would imagine you can fairly easily recreate.
To do the edit described above, go to Tools > Macro > Microsoft Script Editor (or press Alt-Shift-F11). In the main window, about 12 lines down you will see the following line:
[blue][tt] <[/tt][/blue]
[tt]link[/tt] [red][tt]rel[/tt][/red][blue][tt]=Edit-Time-Data[/tt][/blue] [red][tt]href[/tt][/red][blue][tt]="4864974_1_files/editdata.mso">[/tt][/blue]
Delete the line and quit the script editor, saving when prompted to do so.
Finally, I must stress my relative lack of knowledge in this area and a certain 'wing and a prayer' aspect to this 'fix'
Enjoy,
Tony
--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[