资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

用宏语言如何设置单元格底色?

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

  format   subjects   line  
          Range("A9:K9").Select  
          Selection.Font.Bold   =   True  
          Selection.Borders(xlDiagonalDown).LineStyle   =   xlNone  
          Selection.Borders(xlDiagonalUp).LineStyle   =   xlNone  
          Selection.Borders(xlEdgeLeft).LineStyle   =   xlNone  
          With   Selection.Borders(xlEdge)  
                  .LineStyle   =   xlContinuous  
                .Weight   =   xlThin  
                .ColorIndex   =   xlAutomatic  
          End   With  
          With   Selection.Borders(xlEdgeBottom)  
                  .LineStyle   =   xlContinuous  
                  .Weight   =   xlThin  
                  .ColorIndex   =   xlAutomatic  
          End   With  
          Selection.Borders(xlEdgeRight).LineStyle   =   xlNone  
          Selection.Borders(xlInsideVertical).LineStyle   =   xlNone  
          Rows("9:9").Select  
          With   Selection  
                  .HorizontalAlignment   =   xlGeneral  
                  .VerticalAlignment   =   xlBottom  
                  .WrapText   =   True  
                  .Orientation   =   0  
                  .AddIndent   =   False  
                  .ShrinkToFit   =   False  
                  .MergeCells   =   False  
          End   With  
  这段代码怎么改才能设置单元格底色?  
 

网友回答:

发表者:arden1019

.ColorIndex

发表者:arden1019

.Interior.ColorIndex   =   13


 

 
热门推荐笔记本: IBM笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved