btable.wsf

来自「Apress - Managing Enterprise Systems Wit」· WSF 代码 · 共 29 行

WSF
29
字号
<?xml version="1.0" ?>
<job>
<reference object="Word.Document"/> 
<!--comment
Build a simple table and fill in some cells
-->
 <script language="VBScript">
 <![CDATA[
 Dim nF, nI, objWord, objWordDoc
 
 On Error Resume Next

 Set objWord = CreateObject("Word.Application")

 objWord.Visible = True
  
  With objWord
   'create a new document 
   .Documents.Add
   .ActiveDocument.Tables.Add .Selection.Range, 2, 3

  End With

 Set objWord = Nothing
 Set objFSO = Nothing
  ]]>
  </script>
</job>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?