with mshfexgrid1
     .cols=10000000
     .rows=10000000
end with

解决方案 »

  1.   

    添加行和列是这样的:with mshfelxgrid1
      .cols=.cols+1
      .rows=.rows+1
    end with
      

  2.   

    mshfexgrid1.cols=8
    mshfexgrid1.additem "a" & vbtab & "b" & .....
      

  3.   

    可用一个双重循环:
           for i=0 to n
               for j=0 to n
                    MSHFlexgrid1.rows=i
                    MSHFlexgrid1.cows=j
               next j
          next i
    i控制行,j控制列,n代表行数或列数