Darren_workforce
Board Regular
- Joined
- Oct 13, 2022
- Messages
- 146
- Office Version
- 365
- Platform
- Windows
Hello,
Is it possible with VBA to generate a Message Box that displays the cell data anytime a cell is clicked on without having to re-run the macro each time? I know you have to click on 'OK' to clear the message box but then after that, when the mouse is clicked into a different cell, can the cell data automatically generate within a new MsgBox? Or is that asking too much of VBA?
Regarding the actual Msg Box popup, is it able to generate the MsgBox without the 'OK' button? Allow the MsgBox to appear but then automatically after XX seconds, the MsgBox would just go away.
EDIT:
I found this on the MS site but am not certain how to reference it to an active cell so the data would automatically be displayed.
Is it possible with VBA to generate a Message Box that displays the cell data anytime a cell is clicked on without having to re-run the macro each time? I know you have to click on 'OK' to clear the message box but then after that, when the mouse is clicked into a different cell, can the cell data automatically generate within a new MsgBox? Or is that asking too much of VBA?
Regarding the actual Msg Box popup, is it able to generate the MsgBox without the 'OK' button? Allow the MsgBox to appear but then automatically after XX seconds, the MsgBox would just go away.
VBA Code:
MsgBox ActiveCell.Text
EDIT:
I found this on the MS site but am not certain how to reference it to an active cell so the data would automatically be displayed.
VBA Code:
CreateObject("WScript.Shell").PopUp "Your Message", 5
Last edited by a moderator: