在每个sheet的相同位置写入相同的值

 

 

 

Sub 在每个sheet的相同位置写入相同的值()
Dim i%, k%, m%, n%, h%, l%
h = Selection.Row
l = Selection.Column
m = Cells(41, 4)
n = Cells(42, 4)
If m > n Then GoTo 100
For i = m To n
    Sheets(i).Cells(h, l) = Selection.Value
Next
100:
MsgBox ("输入的页码范围不对")
k = ActiveSheet.Index
End Sub

 

posted on 2018-03-13 11:37  搞笑机械师  阅读(196)  评论(0编辑  收藏  举报

导航