Rubber Beaked Woodpecker
Board Regular
- Joined
- Aug 30, 2015
- Messages
- 203
- Office Version
- 2021
Hi
I use the following code which works well but I need to adjust it a little please.
However if the code has already been executed and cell AF5 is populated I would like the code to paste in the next available row i.e AF6.
This possible please?
TIA
I use the following code which works well but I need to adjust it a little please.
VBA Code:
Sub LogSelection1()
Dim source As Worksheet
Dim destination As Worksheet
Dim emptyColumn As Long
Set source = Sheets("Sheet9")
Set destination = Sheets("Sheet9")
source.Range("AA12").Select
Selection.Copy
destination.Range("AF5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("AA2").Select
Sheets("Sheet9").Select
ActiveSheet.Calculate
End Sub
However if the code has already been executed and cell AF5 is populated I would like the code to paste in the next available row i.e AF6.
This possible please?
TIA