我使用记录宏创建了这个。每天的行数不同。所以我想在T列中找到最后一个活动单元格并转到相同的单元格V列。然后V:Z从下到上选择范围并填写V2中可用的公式。
Range("T3").Select
Selection.End(xlDown).Select
Range("V2911":"Z2911").Select
Range(Selection, Selection.End(xlUp)).Select)
Selection.Special Cells(xlcellTypeVisible).Select
Selection.FillDown
范围( “V2911”: “Z2911”)
这个将永远改变。
在U中我也有数据,但不适用于所有单元格。
答案 0 :(得分:0)
可能有点矫枉过正......
Sub x()
Dim n As Long
n = Range("T" & Rows.Count).End(xlUp).Row
Range("V2").Copy Range("V2:Z" & n)
End Sub