So ive created a worksheet to monitor stock positions. I would like to log data from every closed stock position with a button. The first command in my string is to copy the stocks name from within the same worksheet. I Like to know how to do this from within the same worksheet and syntax to do it from another worksheet within the same document. Thank you.
This is the code I run and it returns a Run-Time error '1004' Range of Object Global failed.
Sub LogPosition()
Dim rngStart As Range
Set rngStart = ActiveCell
Sheets("Charts").Select
ActiveSheet.Range("D5").Select
Selection.Copy
Range("D5" & Rows.Count).End(xlUp).Offset(1,
0).PasteSpecial xlPasteValues
rngStart.Select
End Sub