<div class="msgheader">QUOTE:</div><div class="msgborder"><p>Sub 选择()<br/>Dim a As Range, b As Range<br/>For Each a In <font color="#f76809">activesheet.usedrange</font><br/>If a.Locked = True Then<br/> GoTo 100<br/> Else<br/> If b Is Nothing Then<br/> Set b = a<br/> Else<br/> Set b = Union(b, a)<br/> End If<br/>End If<br/>100:<br/>Next<br/>b.Select<br/>End Sub</p></div><p></p>
[此贴子已经被作者于2008-2-19 20:30:12编辑过] |