Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Force to update textbox value to cell

Hi there

Today I wrote something about frames and textboxes and the exit event of the
textbox which is not called, when I leave the form.

Now I have another question:

I like to force the textbox to update the value to the cell which is defined
in ControlSource.

Can I do this in a simple way?

I have an idea but it is very complicated:

0. Remove the controlsource of the textbox
1. Rembember which Textbox is entered in the Enter-Event of the Textbox
2. Create a procedure to write down the value of the textbox manually to the
cell (I don't like this!!!!!)
3. Handle the Exit-Event of the textbox an call the procedure in 2.
4. Handle the Exit-Event of the Frame-Exit and call the procedure in 2.

On this idea I don't like to write code to manually set the textbox value
into the cell. If I could call something like Update or whatever it would be
great, but I don't know excel (or vba) that good.

Thanks alot.

Ueli

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Force to update textbox value to cell

Hi Ueli

Maybe:

Userform1.Repaint

Regards,
Per

"Ueli Werner" skrev i meddelelsen
...
Hi there

Today I wrote something about frames and textboxes and the exit event of
the textbox which is not called, when I leave the form.

Now I have another question:

I like to force the textbox to update the value to the cell which is
defined in ControlSource.

Can I do this in a simple way?

I have an idea but it is very complicated:

0. Remove the controlsource of the textbox
1. Rembember which Textbox is entered in the Enter-Event of the Textbox
2. Create a procedure to write down the value of the textbox manually to
the cell (I don't like this!!!!!)
3. Handle the Exit-Event of the textbox an call the procedure in 2.
4. Handle the Exit-Event of the Frame-Exit and call the procedure in 2.

On this idea I don't like to write code to manually set the textbox value
into the cell. If I could call something like Update or whatever it would
be great, but I don't know excel (or vba) that good.

Thanks alot.

Ueli


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
How to force selection of all current text in textbox control onentry? Chrisso Excel Programming 2 November 25th 07 09:55 PM
force update/"refresh" of cell & workbook_open? TRM Excel Programming 0 July 18th 07 06:14 AM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:47 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:43 PM
ValueBox? or force TextBox to read/format value Leo Elbertse[_2_] Excel Programming 2 April 12th 04 06:52 PM


All times are GMT +1. The time now is 09:14 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"