Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Carriage Return Within a Textbox to Activate a Macro Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crowbar - 13 Nov 2006 17:38 GMT
Hi,

I cannot understand why I having trouble with this one but here goes...

When data is keyed within textbox1 and then the Enter Key is pressed I would
like a function to be activated.

The closest I have got is setting the EnterkeyKeyBehaviour to true so that
the cursor leaves the textbox. Then I have a sub command that activates
because the cursor left the textbox (private sub_exit). This does work but is
a bit rubbish when you leave the textbox to use other functions on the form.

Hope you can help
Cindy M. - 25 Nov 2006 11:45 GMT
Hi Crowbar,

> I cannot understand why I having trouble with this one but here goes...
>  
[quoted text clipped - 5 lines]
> because the cursor left the textbox (private sub_exit). This does work but is
> a bit rubbish when you leave the textbox to use other functions on the form.

You might take a look at the KeyDown/KeyUp events in the Help.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.