1: /** * Created by liuguangxin on 2018/5/16. * <p> * MergeRegion:表示excel中cell的信息,startRow与endRow表示当前cell的起始与结束行编号(base 1), * startCol与endCol同理表示列的起始与结束列编号(base 1)<p/> */ public class MergeRegion { @Override public String toString() { return &
*动态内表alv显示时要求某些单元格显示颜色 *wa_fldcat-datatype不能添加LVC_T_SCOL类型,在创建好内表之后,再添加颜色列. DATA: wa_fldcat TYPE lvc_s_fcat, lt_fldcat TYPE lvc_t_fcat, dy_table TYPE REF TO data, dy_line TYPE REF TO data, <dyn_table> TYPE STANDARD TABLE, <dyn_wa>, dref_tab TY
Public Function QTP_Change_Color(pathway,sheetname,x,y,color) Dim srcData,srcDoc,sp1,sp2,num,use,a1,a2,a3 set srcData = CreateObject("Excel.Application") srcData.Visible = True set srcDoc = srcData.Workbooks.Open(path