??????? Word ??? AutoExec ?? AutoOpen ?? ??????? ?? ?????

???? ?????? ???? ??????
???? ID: 286310 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

?? ????? ?? ???? ???AutoExec, ??AutoOpen?????? ??????? ??, ???????, ??????, ??????? ????????? ?? ??????? ???? ?? ??? Word ???, ?? ????? ?? ??? Word ??? ??? ??? ????????? ????? ?? ?? ??? ?????? ????????? ????? ??? ?? ???? ???? ????? ?? ??????? ?? ???? ???? ??????? ??? ??????? ????????? ?? ????? ???? ???

???? ???????

AutoExec

???AutoExec?? Word ??????? ???? ?? ??? ?????? ????? ??AutoExec?????? ??????? (Normal. dot) ???????? ?? ??? ?? ??? ??? ????? ??? ?? ?? ??? ?? ?? ??????? ??-?? ?? ?? ??? ?? ??? ??? ????? ??? ??? ?? ????? ?? ????AutoExec?????? ?? ???, ???? ??? ???? ??????? ?? Word ??????? ???? ?? ????? ??? ????????? ????? ?? ?? ??? ???? ?? ????? ?????? ?? ???, ?? ????? ?? ???? ??? ???AutoExec?????? Word ??????? ?? ???? ?? ?? ??????? ?????????? ?? ????????? ???? ?? ??? ???

????? ?? ???? ???AutoExec?????? ??? ?? ??? ?? ??? One way is to start Word from the command line by using either the/m??/embedding?????. To use these switches, click???????????? ????,?????, type eitherwinword /m??,winword /embedding?? ????-????? ????, ?? ???? ???OK.

Another method you may use to suppress anAutoExecmacro is to press the Shift key while Word starts.AutoExecmacros are also suppressed when Word is started from an Automation client.

AutoOpen

TheAutoOpenmacro runs after you open a new document.AutoOpen???? ?? ?? ?? ????? ?????? ?? ??? ??? ???????? ????? ???:
  • ???????????? command???????? ??..
  • ?????FileOpen??,FileFind?????
  • ?? ????? ??? ?? ??? ???????? (MRU) ?? ???? ??? ?? ???? ???????? ?? ??? ???????????? ??..
??? ????????? ???? ??, ?? ???AutoOpen??? ?????? ????? ??AutoOpen?????? ?? ?? ???????? ?? ?? ??? ?? ??? ??? ????? ??? ??, ?? ??? ?????? ??? ?? ???????? ?????? ?? ???????? ?? ??? ?? ??? ??? ????? ??? ??? ???AutoOpen?????? ???? ??? ?? ?? ??????? ??-?? ?? ?? ??? ?? ??? ??? ??????

??? ???? ?? ???AutoOpen?????? ?? ???? ?? ???? ?? ?? ??SHIFT:?????, ?? ?? ???? ????????? ?? ??????

??? AutoExec ?????? ?? ?? AutoOpen ?????? ?????

Word 2002 ?? Word 2003
  1. ?? ??? ????? ???????? ?? Word ??? ??????
  2. ????? ????????????? ??,???????? ????-????? ????, ?? ???? ??????????.
  3. ????????????????? ????? ???, ????? ??????????? ??????? ?? ???? ??? ?? ??? ?????????. ????? ????????????? ???????? ?? ??? ??????? ??????? ??-???? ?? ???????? ?? ??????? ?????? ????-????? ????, ?? ???? ???OK.
  4. ????? ???AutoExec??????? ??? ???? ?? ???, ????? ????? ?? ???? ????::
    1. ????? ????????????? ??,???????? ????-????? ????, ?? ???? ?????? ?????? ??????? ????.
    2. ??????????? ?? ??????? ????????? ????? ???, ??????AutoExec?? ????????????? ????? ????-????? ????, ?? ???? ???OK. ???????? ??? ??, ?????? ?????? ???????? ??? ????? ???? ??? ?? ???? ?? ??-??? ???? ????? ????? ???? ?? ?? ???? Word ????????? ?? elsewhere ?? Word ????????? ???? ????? ?? ?????? ?? ???? ??? ???????? (????? ?????????????? ?????) ??? ?? ??????? ???? ????? ?? ????
    3. ????? ????????????? ??,???????? ????-????? ????, ?? ???? ?????????. ??? ????AutoExec?????? ?? ???? ??? ?? ???? ?????????.
    4. ????? ??? ??????AutoExec??????:
      MsgBox "You're seeing the AutoExec macro in action", vbMsgBoxSetForeground
      						
    5. ????? ????????Microsoft Visual Basic ?????? ???, ' ???? ????? ??????????? ??????, ?? ???? ??? Visual Basic ?????? ??? ?????
  5. ????? ?? ??? ?? ?? ????? ?? ???? ????AutoExec?????? ?? ????? ?? ??? ???AutoOpen??????? ?? ??? ?? ????? ????AutoOpen????? ?? ??? ??????????AutoExec?????????? ???????? ??? ??? ???
  6. ???????? ?? C:\Yourfile.doc ?? ??? ??? ??????, ???????? ?? ??? ????, ?? ??? Word ?? ???? ???????
  7. ????? ?????? ??? ?????? ??????? ??????? ?? ????? ?? Word ??? ?? ???????? ?????? ?? ?????? ?????, ?? ?? ??????? ????? ???? ???? ???
Word 2007
  1. ?? ??? ????? ???????? ?? Word ??? ??????
  2. ????? ????Microsoft Office ????? ????-????? ????, ?? ???? ???Word ??????.
  3. ????? ????,??????? ??????????? ????,??????? ?????? ?????????? ????-????? ????, ?? ???? ???????????? ?????.
  4. ?? ?? ?????, ?? ???? ??? ????????? ??????? ??? ?????OK?? ?? ??? ????? ????..
  5. ????? ???AutoExec??????? ??? ???? ?? ???, ????? ????? ?? ???? ????::
    1. ????? ????????????? ????? ????, ?? ???? ????????? ?? ??????? ????????????:?????
    2. ??????????? ?? ??????? ????????? ????? ???, ??????AutoExec?? ????????????? ????? ????-????? ????, ?? ???? ???OK. ???????? ??? ??, ?????? ?????? ???????? ??? ????? ???? ??? ????? ????,?????????? ?????????????:?????
    3. ????? ????????????? ??,??????????????:????? ??? ????AutoExec???????, ?? ???? ??? ?? ???? ?????????.
    4. ????? ??? ??????AutoExec??????:
      MsgBox "You're seeing the AutoExec macro in action", vbMsgBoxSetForeground
      						
    5. Microsoft Visual Basic ?????? ???, ????? ??????????? ??????????? ????????????, ?? ???? ??? ??? Visual Basic Editor.
  6. ????? ?? ??? ?? ?? ????? ?? ???? ????AutoExec?????? ?? ????? ?? ??? ???AutoOpen??????? ?? ??? ?? ????? ????AutoOpen????? ?? ??? ??????????AutoExec?????????? ???????? ??? ??? ???
  7. ???????? ?? C:\ ?? ??? ??? ??????Yourfile.doc, ???????? ?? ??? ????, ?? ???? ??? Word ?? ???? ???????
  8. ?????? ??? "?????? ??????? ??? ????? ????????????" ??? ??? ?????? ??????? ??????? ?? ????? ?? Word ??? ?? ???????? ?????? ????? ?? ?????? ?????, ?? ?? ??????? ????? ???? ???

????? ???????????? ??? ?????? ???????

????? ?????? summarizes ?? ?? ??????? ?? ??????? ?? ?? Word ??????? ???? ??? ??, ?? ?? ??????? ?????? ?????? ????????? ???? ??:
Action                                          AutoExec       AutoOpen
---------------------------------------------------------------------------
Start Word with a blank document by typing      Runs           Does not run
the following at a command prompt:
Winword.exe 

Start Word with a saved document by typing      Runs           Runs
the following at a command prompt:
Winword.exe C:\<Yourfile>.doc 

Embed a Word document in an OLE container       Does not run   Runs
by typing the following at a command 
prompt:
WinWord.exe /embedding C:\<Yourfile>.doc

Use code to automate Word and open              Does not run   Runs 
C:\<Yourfile>.doc by using the following 
code:
Set oWord = CreateObject("Word.Application")
oWord.Visible = True
oWord.Documents.Open "C:\YourFile.doc"

Browse to the document in Internet Explorer     Does not run   Runs
or the WebBrowser control
				

??????

Word ??? ???????? ?? ????? ?? ???? ??? ???????? ??????? ?? ??? ?????? ?? Microsoft ???????? ??? ????? ?? ??? ????? ???? ???????? ?? ????? ????:
211659WD2000: Word ????: ??????
210565WD: Word ????????? (????-??????) ????? ?? ???? ????????
(?) Microsoft Corporation 2001, ??? ?????? ????????? ???????? Chris Jensen, Microsoft Corporation ?????? ???

???

???? ID: 286310 - ????? ???????: 06 ??????? 2011 - ??????: 3.0
???? ???? ???? ??:
  • Microsoft Office Word 2007
  • Microsoft Word 2002 Standard Edition
??????: 
kbhowto kbmt KB286310 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:286310

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com