MartinDurham
Board Regular
- Joined
- Feb 12, 2016
- Messages
- 70
Hi Folks
I have the following VBA:
Is it possible to have the button that activates this check which row it is in? and push it to a variable to be used here, rather than having to explicitly refer to a row number?
(The column will always be I)
cheers for any input
M
I have the following VBA:
Code:
Sub DeleteTimesheet()
Dim TimesheetRef As String
TimesheetRef = ActiveSheet.Range("I5").Text
Worksheets(TimesheetRef).Delete
ActiveSheet.[I5] = "DELETED"
End Sub
Is it possible to have the button that activates this check which row it is in? and push it to a variable to be used here, rather than having to explicitly refer to a row number?
(The column will always be I)
cheers for any input
M