Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Capturing text in a command bar as it is entered

XL 2003

I have a command bar with a text box (msoControlEdit) for the user to enter
text as the basis of a search parameter.

Via the .OnAction event it works fine (the user enters the text then presses
return), but is there a way I can capture the text as it is entered ...
effectively a change event on the text in this control ?

Many thanks
John


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Capturing text in a command bar as it is entered

I don't believe this is possible.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"John" wrote in message
...
XL 2003

I have a command bar with a text box (msoControlEdit) for the
user to enter text as the basis of a search parameter.

Via the .OnAction event it works fine (the user enters the text
then presses return), but is there a way I can capture the text
as it is entered ... effectively a change event on the text in
this control ?

Many thanks
John




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Capturing text in a command bar as it is entered

Thanks Chip .... I'm sure you'd know about it if there was a workaround.

Looks like I'm going to have to change it to a useform and capture key
events :-(

John



"Chip Pearson" wrote in message
...
I don't believe this is possible.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"John" wrote in message
...
XL 2003

I have a command bar with a text box (msoControlEdit) for the user to
enter text as the basis of a search parameter.

Via the .OnAction event it works fine (the user enters the text then
presses return), but is there a way I can capture the text as it is
entered ... effectively a change event on the text in this control ?

Many thanks
John






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Capturing text in a command bar as it is entered

Have you tried this:
Private Sub TextBox1_Change()

MsgBox (TextBox1.Value)


End Sub

Obviously you will have something more meaningful replacing the Msgbox, I
have to warn you, it will execute as soon as the firs letter is keyed in.




"John" wrote:

Thanks Chip .... I'm sure you'd know about it if there was a workaround.

Looks like I'm going to have to change it to a useform and capture key
events :-(

John



"Chip Pearson" wrote in message
...
I don't believe this is possible.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"John" wrote in message
...
XL 2003

I have a command bar with a text box (msoControlEdit) for the user to
enter text as the basis of a search parameter.

Via the .OnAction event it works fine (the user enters the text then
presses return), but is there a way I can capture the text as it is
entered ... effectively a change event on the text in this control ?

Many thanks
John







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
Disabling or capturing a Delete Sheet command SteelDetailer[_2_] Excel Programming 3 January 6th 06 09:31 PM
Capturing Shape Name/Text from OnAction property William Bartusek Excel Discussion (Misc queries) 3 April 12th 05 06:38 PM
Possible to read data entered in a worksheet's Form object, using a VBA command? Android[_2_] Excel Programming 2 May 14th 04 03:17 PM
Capturing text in active cell to clipborad (Excel 95) sth Excel Programming 8 May 5th 04 04:57 AM
Iterating through workbook capturing text Matt Giedt Excel Programming 2 February 5th 04 10:49 AM


All times are GMT +1. The time now is 01:12 AM.

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

About Us

"It's about Microsoft Excel"