Sub test()
Dim i As Integer
Dim r As Variant
Dim c As Variant
Dim cl As Variant
zr = Rows.Count
For i = 7 To Sheets.Count
With Sheets(i)
lastrow = .Range("aj" & zr).End(3).Row
.Range("F4:aj" & lastrow).Clear '更直接地刪除內容及格式
Rem .ClearContents
Rem .Interior.ColorIndex = xlNone
End With
Next i
Worksheets("taiwan").Activate
Set c = Range("D420").Find("開工人數")
If Not c Is Nothing Then
c.Select
r = c.Row '返回行
cl = c.Column '返回列
End Sub作者: missbb 時間: 2015-8-24 20:45