VBA macro-move to cell underneath the button
Solved/Closed
Related:
- Excel vba set active cell
- Number to words in excel formula without vba - Guide
- Vba case like - Guide
- Excel mod apk for pc - Download - Spreadsheets
- How to open vba in excel - Guide
- How to set auto redial on android - Guide
2 responses
put this code in a macro called by the button
Dim r As Range
Set r = ActiveSheet.Buttons(Application.Caller).TopLeftCell
Range(Cells(r.Row, r.Column), Cells(r.Row, r.Column)).Select
Dim r As Range
Set r = ActiveSheet.Buttons(Application.Caller).TopLeftCell
Range(Cells(r.Row, r.Column), Cells(r.Row, r.Column)).Select
Apr 5, 2010 at 02:18 AM
Aug 2, 2010 at 01:55 AM
"Unable to get the Buttons property of the Worksheet class"
Aug 2, 2010 at 01:57 AM
Aug 2, 2010 at 08:54 AM
Dim r As Range
Set r = ActiveSheet.Buttons(Application.Caller).TopLeftCell
Range(Cells(r.Row, r.Column), Cells(r.Row, r.Column)).Offset(0, -1).Select
Aug 2, 2010 at 11:02 PM
The same run-time error occurs
"Unable to get the Buttons property of the Worksheet class"
This is my Macro:
Sub Knockout()
'
' Knockout Macro
' Macro recorded 02/08/2010 by Admin
'
Dim r As Range
Set r = ActiveSheet.Buttons(Application.Caller).TopLeftCell
Range(Cells(r.Row, r.Column), Cells(r.Row, r.Column)).Offset(0, -1).Select
ActiveCell.Value = ActiveCell.Value + 1
'
End Sub
Is this wrong?