- ©«¤l
- 214
- ¥DÃD
- 74
- ºëµØ
- 0
- ¿n¤À
- 296
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- hk
- µù¥U®É¶¡
- 2013-6-17
- ³Ì«áµn¿ý
- 2018-11-3
|
dim A as string
A="A1,A10:A20,A40:A50....X1,D2:F15,...."
¦]¬°len(A)>255,©Ò¥Hset R=range(A)¥¢±Ñ
½Ð ...
mhl9mhl9 µoªí©ó 2014-11-21 01:04
§Ú¦³¤èªk¤F
Sub test()
Dim E As String
Dim R As Range
E= "$A$7:$P$10,$A$15:$P$18,$A$22:$P$25,$A$50:$P$73,$A$106:$P$145,$A$174:$P$201,$A$218:$P$249,$A$262:$P$273,$A$280:$P$281,$A$288:$P$289,$A$296:$P$305,$A$308:$P$313,$A$322:$P$337,$A$343:$P$346,$A$351:$P$354,$A$358:$P$361,$A$386:$P$409,$A$442:$P$481,$A$510:$P$537"
For Each i In Split(E, ",")
If R Is Nothing Then
Set R = Range(i)
Else
Set R = Union(R, Range(i))
End If
Next i
R.Select
End Sub |
|