tyhonex
New Member
- Joined
- Jun 22, 2023
- Messages
- 2
- Office Version
- 365
- 2021
- 2019
- Platform
- Windows
- MacOS
Hello I just need to do a basic thing. When I press button I want to get the location of button for example to mgsbox.
My code is here:
Sub GetLocation()
Dim Row As Long
Dim Column As Long
Row = Application.Caller.Row
Column = Application.Caller.Column
MsgBox "Row:" & Row&
End Sub
Error: Object requied
Thank you for you help
My code is here:
Sub GetLocation()
Dim Row As Long
Dim Column As Long
Row = Application.Caller.Row
Column = Application.Caller.Column
MsgBox "Row:" & Row&
End Sub
Error: Object requied
Thank you for you help