M
maldini610
Unregistered / Unconfirmed
GUEST, unregistred user!
如题:
Range("M2:M3".Select
Range("M2".AddComment
Range("M2".Comment.Visible = False
Range("M2".Comment.Text Text:="sdfsdf" & Chr(10) & ""
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.ReadingOrder = xlContext
.Orientation = xlHorizontal
.AutoSize = True
.AddIndent = False
End With
这是 vb代码,可是 我转成delphi的就不好使啊?
Excelid.WorkSheets[1].Range['N2'].addComment;
Excelid.WorkSheets[1].Range['N2'].Comment.Visible := False;
Excelid.WorkSheets[1].Range['N2'].Comment.Text('asdfasda');
//////////或者
Excelid.WorkSheets[1].Range['N2'].AddComment('按时打发似的');
这两种插入批注的代码都行 可是怎么设置 批注的宽和高呢?
哪位大侠给指点下啊
Range("M2:M3".Select
Range("M2".AddComment
Range("M2".Comment.Visible = False
Range("M2".Comment.Text Text:="sdfsdf" & Chr(10) & ""
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlTop
.ReadingOrder = xlContext
.Orientation = xlHorizontal
.AutoSize = True
.AddIndent = False
End With
这是 vb代码,可是 我转成delphi的就不好使啊?
Excelid.WorkSheets[1].Range['N2'].addComment;
Excelid.WorkSheets[1].Range['N2'].Comment.Visible := False;
Excelid.WorkSheets[1].Range['N2'].Comment.Text('asdfasda');
//////////或者
Excelid.WorkSheets[1].Range['N2'].AddComment('按时打发似的');
这两种插入批注的代码都行 可是怎么设置 批注的宽和高呢?
哪位大侠给指点下啊