我使用VBS推給我們的用戶在Outlook中創建的簽名工作的Outlook簽名。簽名中有這樣我就可以有並排標誌/用戶側信息與上一個標誌上方的標準文本表。 (原表的代碼在這裏找到:http://www.vbforums.com/showthread.php?526706-resolved-question-with-tables-in-vbscript-for-AD-signature)創建使用表格
下面是寫到doc文件的代碼的snipit。該代碼成功創建了兩個coluns,並將我想要的任何信息放入其中。問題是,如果我在輸入Table 1和Table的頂部的水平行,在這兩個表之間的間隙。我的問題是,你可以使用vbs來控制文檔的兩個表之間的差距嗎?
objDoc.Tables.Add objRange, 1, 2
Set objTable = objDoc.Tables(1)
'** Logo column **
'Draw a horizontal line (This only draws it for this frame)
objSelection.InlineShapes.AddHorizontalLineStandard
objTable.Cell(1, 1).select
'Put Logo information here
'** User column **
'Draw a horizontal line (This only draws it for this frame)
objSelection.InlineShapes.AddHorizontalLineStandard
objTable.Cell(1, 2).select
'Put User information here
objSelection.EndKey 6 'Command to end the above tables