Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Hey guys,
i was working today on Microsoft word 2007.
their on the first line, as soon as try to save the file, then one sentence is written automatically.
the sentence is like this

This text was added by using code.

if i try to remove that sentence then also , it comes again. if i try to save the file then, this sentence is included again.
is any one had gone through this kind of error?
if i try to take new file now, then also in new file if i don't write any thing, and then i save the file then this sentence is auto. included in the file.

share|improve this question
1  
please change the question title to something meaningful. e.g. "Why is a sentence automatically added on saving a file?" –  Tobias Kienzler Jun 15 '10 at 8:57

2 Answers 2

It might be a VB macro that is stored in the Normal.dot template and that runs on the document save event.

This Microsoft tutorial gives an overview of the Word macro system and how to open the macro editor and browse existing macros. It could help:

http://office.microsoft.com/en-ca/word-help/record-or-run-a-macro-HA010099769.aspx

share|improve this answer
    
nope. i have disable the macros as mention on this page...office.microsoft.com/en-ca/word-help/…... but then also, it is coming.... –  Nitz Jun 15 '10 at 7:04

It could be ANY global add-in (check the Templates and Add-ins dialog)

If it is not a VBA macro in Word, SOMETHING is hooking into Word, such as a COM add-in. You should also check the Word | Options | Add-Ins dialog and note any "Active Application Add-ins". Also note that other Office applications, such as Excel, can have their own VBA macros which send messages to Word here. Judging by the "This text was added by using code.", my guess is that someone went through a sample tutorial on how to programatically type text in a Word document, and this command runs in the DocumentBeforeSave event.

I hope you resolved it! It would be nice to know how it was resolved.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.