Excel 的选择区域属性设置问题 我在程序中选择了excel的一块区域(大于一个单元格)用来赋以数组值,我用什么办法可以将这个区域中所有单元格的属性设置为和这块区域一样?主要是想设置边框,如果不用循环最好 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 供你参考Range("B1").Select ActiveCell.FormulaR1C1 = "1" Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With ActiveWindow.SelectedSheets.PrintPreview 如何打包VB+SQL 求一个设计思路 新手!请指点 怎樣讓圖片B透明? 怎样实现双表的查询? ado查询的问题 急!!!数据报表中怎么实现分两列显示??? 帮忙我翻译一下这代码的注释 请问如何将文本里的内容逐行删除 Download: Microsoft .Net Framework SDK! 为什么不能显示数据 也许很简单3!!!
Range("B1").Select
ActiveCell.FormulaR1C1 = "1"
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
ActiveWindow.SelectedSheets.PrintPreview