automated routine on focus of table cells

D

devo

Is there a way to automate various document functions / vba routines when
people move in to a cell in a table... !!!

but like onfocus in ms access but i dont know if you can take it that far in
word !

thanks
 
H

Helmut Weber

Hi,
see, to get you started,

http://www.word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm

and create an event of kind WindowSelectionChange, like

Private Sub oApp_WindowSelectionChange(ByVal Sel As
Selection)
If Selection.Information(wdWithInTable) Then
MsgBox "in table"
End If
End Sub

Ask again, if you need assistance on how to continue.

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top