我有这个脚本,我一直收到一个错误:Run-time error '1004': Method 'Range' of object _'Worksheet' failed
这是脚本:
Option Explicit
Sub ONJL()
Dim lastrow As Long
Dim wsRD As Worksheet 'Raw Data
Set wsRD = Sheets("Raw Data")
With wsRD
Application.ScreenUpdating = False
lastrow = wsRD.Range("J:J").End(xlUp).Offset(1, 0)
wsRD.Range("J" & lastrow).Value = "=Today()"
End With
End Sub
我认为这就是您要查找最后一行,然后将今天的日期粘贴到最后一个单元格的方式?