Thread: [Solved] Find textbox name
View Single Post
 
Old 01-30-2014, 11:13 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,374
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Hdata View Post
The textboxes I am working with are called VBA textboxes and not a Windows Form textbox.
There is no such thing as 'VBA textboxes'. To VBA, userforms and documents can both contain textboxes, so maybe they're document textboxes (i.e. the kind that often exist in the body of a document)? For a macro to return the name of such a textbox when you click in it, you'd have to created a Selection_Change event macro. For the principles, see:
http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote