Intersect(studsSht.UsedRange, studsSht.Range(Left(.item(stud), Len(.item(stud)) - 1))).Copy Destination:=GetSheetnamed sheet starting from cell D1 End With
End Sub
On Error Resume Next
自学成才的菜鸟,在google sheets工作,为这里的混乱提前道歉。我正在尝试将两个单元格中的数据拉到新的工作表中。这两个都是在我用onEdit触发它们之后拉入的。我需要输入一个值并在两个单元格上按enter键,才能将它们放到新工作表中。我如何设置它,以便当我触发"D9“时,我会拉入"C9”加上"D9"?// Set a comment on the edited cell to indicate when it was changed.
if(e.range.getA1Notation() === 'C9
当我多次运行我的代码时,它会在工作表中复制结果。每次运行时,我都需要删除以前的数据并粘贴新的数据。 Dim lastRow, mMonth, tstDate1, tstDate2, shtName, nxtRow
'Turn off ScreenUpdating 'Make a copy of the data sheet and sort by date
Sheet