我正在尝试在excel中使用vba自动调整预先存储在变量中的行,但无法使其工作。有人有什么想法吗?
Sub test1()
Dim intYellowRow As Integer
intYellowRow = 18
With Rows(intYellowRow & ":" & intYellowRow).EntireRow
.AutoFit
End With
End Sub
答案 0 :(得分:1)
你非常接近:
<xe:toolbar id="toolbar2" style="font-family:Arial,sans-serif;font-size:12pt;font-weight:bold">
<xe:this.treeNodes><xe:basicContainerNode label="Article Actions">
<xe:this.children>
<xe:basicLeafNode label="Edit Article" submitValue="Edit" rendered="#
{javascript:!document1.isEditable();}">
</xe:basicLeafNode></xe:this.children></xe:basicContainerNode>
</xe:this.treeNodes><xp:eventHandler event="onItemClick" submit="true"
refreshMode="complete"><xe:this.action><![CDATA[#{javascript:var aChoice =
context.getSubmittedValue();
switch(aChoice){case "edit": context.setDocumentMode("document1","edit");
}}]]></xe:this.action></xp:eventHandler></xe:toolbar>