Hi all
I am trying to write code to select a range of cells, copy and paste to sheet2
In my sheet i have a button that adds a line copying the format of the cells above
i need to be able to select all the text in column A down as far as the add Line button but not including the is cell
I have the code to select all as seen below. How can i select all the text from A3 to the cell just above the cell named "LastCell"
Sub Copy()
Dim LastCell As Integer
' name the cell as lastcell that you wish to find
Range("A3", Range("LastCell")).Select
Selection.Copy
Range("C2").Select
Selection.PasteSpecial
End Sub
Thanks
Bookmarks