Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Using txtMy_GotFocus or txtMy_LostFocus in MSWord or Excel

Hello,

Is there some limitation to using the _GotFocus or _LostFocus in Word or
Excel forms?

I've used these extensively in Access, but now find myself stymied in my
Excel App...

Any help is appreciated,

Jonno


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Using txtMy_GotFocus or txtMy_LostFocus in MSWord or Excel

With regard to Excel:

If you mean using MSForms 2.0 controls on a worksheet, then there is not
limitation. If you mean usingt them on a userform, then the limitation would
be that these events don't exist. Substitute events would be Enter and Exit
events.

--
Regards,
Tom Ogilvy


"jonno" wrote:

Hello,

Is there some limitation to using the _GotFocus or _LostFocus in Word or
Excel forms?

I've used these extensively in Access, but now find myself stymied in my
Excel App...

Any help is appreciated,

Jonno


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Using txtMy_GotFocus or txtMy_LostFocus in MSWord or Excel

OK. Basically then; use "_Enter" in place of "_GotFocus" and use "_Exit
(ByVal...." in place of "_LostFocus".

Easy enough - Thanks!

Jon

"Tom Ogilvy" wrote:

With regard to Excel:

If you mean using MSForms 2.0 controls on a worksheet, then there is not
limitation. If you mean usingt them on a userform, then the limitation would
be that these events don't exist. Substitute events would be Enter and Exit
events.

--
Regards,
Tom Ogilvy


"jonno" wrote:

Hello,

Is there some limitation to using the _GotFocus or _LostFocus in Word or
Excel forms?

I've used these extensively in Access, but now find myself stymied in my
Excel App...

Any help is appreciated,

Jonno


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Using txtMy_GotFocus or txtMy_LostFocus in MSWord or Excel

Private Sub TextBox1_Enter()

End Sub

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)

End Sub

always best to select events from the dropdowns at the top of the userform
code module to insure arguments are declared correctly.

--
Regards,
Tom Ogilvy


"jonno" wrote:

OK. Basically then; use "_Enter" in place of "_GotFocus" and use "_Exit
(ByVal...." in place of "_LostFocus".

Easy enough - Thanks!

Jon

"Tom Ogilvy" wrote:

With regard to Excel:

If you mean using MSForms 2.0 controls on a worksheet, then there is not
limitation. If you mean usingt them on a userform, then the limitation would
be that these events don't exist. Substitute events would be Enter and Exit
events.

--
Regards,
Tom Ogilvy


"jonno" wrote:

Hello,

Is there some limitation to using the _GotFocus or _LostFocus in Word or
Excel forms?

I've used these extensively in Access, but now find myself stymied in my
Excel App...

Any help is appreciated,

Jonno


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I import data from MSWord into Excel? How Please? Thank you TimH ! ! For the link -) JMH Excel Discussion (Misc queries) 2 December 4th 09 11:04 PM
Drag and Drop file to open Excel (or MSWord SJB Excel Discussion (Misc queries) 0 January 7th 06 12:32 AM
make MSWord "work" menu available for Excel also. kif212 Setting up and Configuration of Excel 0 July 15th 05 07:24 PM
copy excel worksheet into msword with row, column headings and gr. eleda Excel Discussion (Misc queries) 0 January 19th 05 01:31 AM
MSWORD to EXCEL kmlove Excel Discussion (Misc queries) 1 January 7th 05 11:39 PM


All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"