【发布时间】:2012-10-24 20:01:36
【问题描述】:
我正在使用 VBS 在 Outlook 中创建签名以推送给我们的用户。签名中有表格,因此我可以将徽标/用户信息与徽标顶部的标准文本并排放置。 (此处找到原始表格代码:http://www.vbforums.com/showthread.php?526706-resolved-question-with-tables-in-vbscript-for-AD-signature)
以下是写入 doc 文件的代码片段。该代码成功地创建了两个列,并将我想要的任何信息放入其中。问题是,如果我在 table1 和 table2 的顶部输入一条水平线,则两个表之间存在间隙。我的问题是,你能用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
【问题讨论】:
标签: vbscript outlook-2010