| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1805 人关注过本帖
标题:求助 如何在excel 使用编程的方式对单元格边框标黑
只看楼主 加入收藏
神经蛙90
Rank: 1
等 级:新手上路
帖 子:7
专家分:5
注 册:2019-12-16
收藏
 问题点数:0 回复次数:1 
求助 如何在excel 使用编程的方式对单元格边框标黑
小白刚开始接触excel编程,希望各位大神不吝赐教
搜索更多相关主题的帖子: excel 编程 单元格 边框 不吝 
2019-12-24 21:55
rhloo
Rank: 2
等 级:论坛游民
帖 子:6
专家分:20
注 册:2020-5-22
收藏
得分:0 
程序代码:
    With Range("B3:D6")
        .Borders(xlEdgeLeft).LineStyle = xlContinuous
        .Borders(xlEdgeLeft).Weight = xlThin
        .Borders(xlEdgeTop).LineStyle = xlContinuous
        .Borders(xlEdgeTop).Weight = xlThin
        .Borders(xlEdgeBottom).LineStyle = xlContinuous
        .Borders(xlEdgeBottom).Weight = xlThin
        .Borders(xlEdgeRight).LineStyle = xlContinuous
        .Borders(xlEdgeRight).Weight = xlThin
        .Borders(xlInsideVertical).LineStyle = xlContinuous
        .Borders(xlInsideVertical).Weight = xlThin
        .Borders(xlInsideHorizontal).LineStyle = xlContinuous
        .Borders(xlInsideHorizontal).Weight = xlThin
    End With

2020-05-22 14:14
快速回复:求助 如何在excel 使用编程的方式对单元格边框标黑
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014483 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved