![]() |
#1
|
|||
|
|||
![]()
Hi there,
I would like to run some code prior to a user deleting a comment. Is there a way I can have VBA recognize when a user is attempting to delete any comment? Thanks |
#2
|
||||
|
||||
![]()
Word doesn't have any comment-based events you could tap into for this, so the most you might be able to do is to leverage the WindowSelectionChange event, but even that's limited to tapping into actual selection changes - typing over a comment or pressing the Delete button would be outside its scope.
For more info, see: http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Code in a UserForm module to delete a Command Button which opens the userform | Simoninparis | Word VBA | 2 | 09-21-2014 03:50 AM |
MS Project -How to delete Change Working Time - For Calender | erikmar | Project | 11 | 09-05-2014 03:44 AM |
![]() |
ubns | Word | 4 | 05-30-2012 12:04 AM |
![]() |
pstein | Word | 2 | 03-31-2012 05:31 AM |