Purplemuffin
New Member
- Joined
- Nov 24, 2023
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Hi.
I'm trying and failing to get my head around VBA so thought I'd ask here.
I'm trying to write some VBA to attach to a button so that the user can copy a specific range of cells to clipboard in order to paste elsewhere.
This is the basic of my code:
Sub Copy_Test()
Range("A36:F39").Copy
End Sub
However - where it says F39, this could be anywhere between F38 and F50, where the row is taken to be the last non blank row (it would also have TOTAL in column E if that means the code is easier to write?)
Any ideas anybody please?
I'm trying and failing to get my head around VBA so thought I'd ask here.
I'm trying to write some VBA to attach to a button so that the user can copy a specific range of cells to clipboard in order to paste elsewhere.
This is the basic of my code:
Sub Copy_Test()
Range("A36:F39").Copy
End Sub
However - where it says F39, this could be anywhere between F38 and F50, where the row is taken to be the last non blank row (it would also have TOTAL in column E if that means the code is easier to write?)
Any ideas anybody please?