Hello,
I found this thread and it was spot on for what I needed. However, I'm using the script below for adding notes for invoices that are then pulled into a PowerPivot, but it hangs on Pivot refresh if I put more than one note per invoice number (I'm using the invoice number as a relation between two tables). Any suggestions?
Sub Clear()
Application.ScreenUpdating = False
Dim NextRow As Range
Set NextRow = Sheets("notes").Range("A19").End(xlUp).Offset(1, 0)
Sheets("Aging").Range("e2:g2").Copy
NextRow.PasteSpecial (xlValues)
Dim NextRow2 As Range
Sheets("Aging").Range("e2:g2").ClearContents
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
I found this thread and it was spot on for what I needed. However, I'm using the script below for adding notes for invoices that are then pulled into a PowerPivot, but it hangs on Pivot refresh if I put more than one note per invoice number (I'm using the invoice number as a relation between two tables). Any suggestions?
Sub Clear()
Application.ScreenUpdating = False
Dim NextRow As Range
Set NextRow = Sheets("notes").Range("A19").End(xlUp).Offset(1, 0)
Sheets("Aging").Range("e2:g2").Copy
NextRow.PasteSpecial (xlValues)
Dim NextRow2 As Range
Sheets("Aging").Range("e2:g2").ClearContents
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub