Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1446|回复: 1

【录制宏】按固定文本定位

[复制链接]
发表于 2012-9-8 12:52 | 显示全部楼层 |阅读模式
Sub 文本定位()
Dim aa As Range
For Each a In ActiveSheet.UsedRange
If a Like "*合计*" Then
If aa Is Nothing Then
Set aa = a.Cells
Else
Set aa = Union(aa, a.Cells)
End If
End If
Next
aa.Select
End Sub
发表于 2012-9-8 13:40 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-16 00:11 , Processed in 0.191296 second(s), 4 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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