H hwr2008 Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-21 #1 我用MYAPP:= CreateOleObject('Excel.Application');创建EXCEL并将数据导入,但没办法将数据居中显示。有没相关函数能实现这个功能。
H hwr2008 Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-21 #2 我用MYAPP:= CreateOleObject('Excel.Application');创建EXCEL并将数据导入,但没办法将数据居中显示。有没相关函数能实现这个功能。
H hwr2008 Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #3 怎么没人顶呀,难道没有人知道吗?[?]。。。。。。
C china_bill Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #5 oSheet.Range[’A11′].VerticalAlignment := xlVAlignCenter;
H hwr2008 Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #6 Sheet.Range['A1','I4'].HorizontalAlignment:= xlCenter ;
C coscka Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #7 uses Excel97; (Excel2000, ExcelXP均可) 设置单格: ExcelApp.ActiveSheet.Cells[1,1].HorizontalAlignment:=xlCenter; ExcelApp.ActiveSheet.Cells[1,1].VerticalAlignment:=xlCenter;
uses Excel97; (Excel2000, ExcelXP均可) 设置单格: ExcelApp.ActiveSheet.Cells[1,1].HorizontalAlignment:=xlCenter; ExcelApp.ActiveSheet.Cells[1,1].VerticalAlignment:=xlCenter;