You had a virus, and the virus scanner cleaned it out.
Now, another component of the virus (which it didn't find...) is trying to
launch the virus. When it calls the virus, it's not there, which is what
produces the error.
"Sub" is a VBA statement that specifies the name of a subroutine.
"Function" is a VBA statement that specifies the name of a function (a piece
of code that returns a result when called).
Paul's quite correct: something is calling these components, but they have
been removed by the virus scanner. And I agree with him: the most likely
place to find them is in your Normal template. Try re-naming the Normal
template. If that fixes the problem, trash the old one: Word will create a
clean new one for you.
The other place it "could" be is in your Word Startup folder. Or in a
template pointed to by your Tools>Templates and Addins... Specification. In
the latter case, you need to look in that dialog box to see "What" it is,
then go looking in Finder to remove it. Removing it in the dialog is not
sufficient: it will attempt to put itself back in.
Cheers
I recenlty ran a virus scan on my hard drive and now everytime I open
word, open or close a word document, a message box comes up saying:
'Sub & Function not defined' I then click 'OK" and it goes away and the
program opens. When I go to close or reopen a document the same message
box appears.
How do I 'define' 'Sub & Function'? What is 'Sub & Function' ? How do
I get rid of this annoying message box?
thanks for the help
--
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <
[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410