The following code works in regular excel file, but in converted .exe file not working:
How can I change thi code to make it work after compilation?
Code:
Sub PASTEIT()
On Error Resume Next
Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Activate
ActiveWindow.ActivateNext
Selection.Copy
ThisWorkbook.Activate
ActiveCell.PasteSpecial Paste:=xlPasteValues
ActiveWindow.ScrollRow = Range("A" & Rows.Count).End(xlUp).Row
End Sub
