473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VBA commandbar - lost inputted text

Hello,

I have a small problem with a VBA commandbar I'm using in Word 2003.

I created the toolbar -which works fine - and added some controls like :

TBar.Controls.Add(Type:=msoControlEdit)

But if I type in some text in that input field and switch to another element with the mouse, the inputted text is lost, whereas if I switch with the tab key, the text stays.

How can I attach a lostfocus on that control ?

Thanks a lot,

Lars
Jan 22 '07 #1
0 961

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Eric | last post by:
I have the following function which creates buttons on Excel commandbar. The problem i can't get the buttons to hook up to events. For example, if i create four buttons only the fourth one fires...
3
by: adrian.chandler | last post by:
I have a form with a subform. The subform occupies about the bottom two thirds of the screen. The form has a custom CommandBar docked at the top. The subform also has its own CommandBar. I want...
2
by: sprox_09 | last post by:
how can i remove the last digit on inputted value on my text box example: Qty: 100001- must be "10000" only Qty: 3807 - must be "380" only thank you!
2
by: Samuel | last post by:
Hi I want to customize our IDE. I developed some Add-ins and would like to create command bar to access them directly. I'm not sure if the term of "command bar" is appropriat. I mean with it a...
3
by: Tom | last post by:
I have a VB .NET application that has a text box with the following code to handle the leave event. Private Sub txtIDiscountRate_TextChanged(ByVal sender As System.Object, ByVal e As...
2
by: jbol | last post by:
I am fairly new to this so forgive me if the answer is obvious. I have written a PHP form script that validates itself by posting back to itself. I use VALUE=$var for all the input fields so I...
2
by: bryan.a.fowler | last post by:
I'm really new working with VB.net and I'm working on a simple program with a date input. I've got a couple of questions; 1) I'm using a DateTimePicker to show both the user inputted date as...
15
by: intscript | last post by:
Hello Everybody I have a dynamic check box input box and I want to compute the value of the input box, in every checked box Here is my HTML code a=(-1) Do until objRSDefect1.eof or a = RecFound ...
1
by: Keith L | last post by:
Hi, I am aware on how to retrieve the commandbars collection from the current db (see example), but does anyone know how to do this from a remote Access db? I tried a few variations, namely using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.