Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
12
返回列表 发新帖
楼主: wg68241064

[已解决]VBA求助 我的这个随机排序 点击后 没有反应 代码应该怎么修改

[复制链接]
发表于 2012-2-7 17:42 | 显示全部楼层
对于范围:Sheets(2).[a3].Resize(n, 8)

直接运用代码是:

  1.     With Sheets(2).[a3].Resize(n, 8)
  2.         .Borders(xlEdgeLeft).LineStyle = xlContinuous
  3.         .Borders(xlEdgeTop).LineStyle = xlContinuous
  4.         .Borders(xlEdgeBottom).LineStyle = xlContinuous
  5.         .Borders(xlEdgeRight).LineStyle = xlContinuous
  6.         .Borders(xlInsideVertical).LineStyle = xlContinuous
  7.         .Borders(xlInsideHorizontal).LineStyle = xlContinuous
  8.     End With

复制代码
把这几句代码复制进去就可以了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-4 19:20 , Processed in 0.236383 second(s), 8 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表