Q
q_sand
Unregistered / Unconfirmed
GUEST, unregistred user!
我将
Sub 宏1()
'
' 宏1 Macro
' guo 记录的宏 2007-10-14
'
Range("A1:H1".Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
End Sub
语句转化成
var
Row,Col,FieldIndex :Integer;
BK:TBookMark;
Range, Body,Title, A, B, C, D: Variant;
Title := Sheet.Range['A1:H1'];
Title.Select;
Sheet.Application.Selection.HorizontalAlignment := 'xlCenter';
Sheet.Application.Selection.VerticalAlignment := 'xlBottom';
Sheet.Application.Selection.WrapText := False;
Sheet.Application.Selection.Orientation := 0;
Sheet.Application.Selection.AddIndent := False;
Sheet.Application.Selection.ShrinkToFit := False;
Sheet.Application.Selection.MergeCells := True;
语句,但是说不支持 HorizontalAlignment 属性,请教高手。。。?
Sub 宏1()
'
' 宏1 Macro
' guo 记录的宏 2007-10-14
'
Range("A1:H1".Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
End Sub
语句转化成
var
Row,Col,FieldIndex :Integer;
BK:TBookMark;
Range, Body,Title, A, B, C, D: Variant;
Title := Sheet.Range['A1:H1'];
Title.Select;
Sheet.Application.Selection.HorizontalAlignment := 'xlCenter';
Sheet.Application.Selection.VerticalAlignment := 'xlBottom';
Sheet.Application.Selection.WrapText := False;
Sheet.Application.Selection.Orientation := 0;
Sheet.Application.Selection.AddIndent := False;
Sheet.Application.Selection.ShrinkToFit := False;
Sheet.Application.Selection.MergeCells := True;
语句,但是说不支持 HorizontalAlignment 属性,请教高手。。。?