Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Textbox values won't change untill clicked on!!!!!!!!!!

I have two textboxes that both display values from the same cell. The idea is
the change the value on one of the textbox1, that should change the textbox2
value at the same time. But at the moment value will only change if I click
on textbox2.
To clarify!!!
I will start with the worksheet(4). In cell A7 has a value which I enter
daily. Cell A6 then calculates =SUM(1013-(A7))*28. The two values A6 and A7
are displayed in UserForm1 TextBox1 and TextBox2.
TextBox1 = A7
TextBox2 = A6

I am trying to do this all on vb code..........but with no luck!



--
Tdp
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Textbox values won't change untill clicked on!!!!!!!!!!

Hi,

There are several ways to do this and without seeing your code it's hard to
be very helpful but this does what you want when the userform activates. Note
I've used worksheets(4) the same as in your question but you need to realise
that this sheet is the 4th from the left and will change of the sheets are
re=ordered.

Private Sub UserForm_Activate()
TextBox1.Text = Worksheets(4).Range("A7").Value
TextBox2.Text = Worksheets(4).Range("A6").Value
End Sub


Mike

"Tdp" wrote:

I have two textboxes that both display values from the same cell. The idea is
the change the value on one of the textbox1, that should change the textbox2
value at the same time. But at the moment value will only change if I click
on textbox2.
To clarify!!!
I will start with the worksheet(4). In cell A7 has a value which I enter
daily. Cell A6 then calculates =SUM(1013-(A7))*28. The two values A6 and A7
are displayed in UserForm1 TextBox1 and TextBox2.
TextBox1 = A7
TextBox2 = A6

I am trying to do this all on vb code..........but with no luck!



--
Tdp

  #3   Report Post  
Posted to microsoft.public.excel.misc
Tdp Tdp is offline
external usenet poster
 
Posts: 74
Default Textbox values won't change untill clicked on!!!!!!!!!!

I have the following code on sheet4:
Range("BY6").Value = (Range("BY2") - Range("BY7")) * 28
That does the calculations.
TextBox1 has the followong as control source: ='Sheet4'!BY7
TextBox2 has also the following: ='Sheet4'!BY6

The idea is to insert a value on textbox1, the calculation is done and the
reasult comes up on textbox2.
But it only does the calculation when I add a figure in "BY7" and then
select another cell.
Any ideas?

--
Tdp


"Mike H" wrote:

Hi,

There are several ways to do this and without seeing your code it's hard to
be very helpful but this does what you want when the userform activates. Note
I've used worksheets(4) the same as in your question but you need to realise
that this sheet is the 4th from the left and will change of the sheets are
re=ordered.

Private Sub UserForm_Activate()
TextBox1.Text = Worksheets(4).Range("A7").Value
TextBox2.Text = Worksheets(4).Range("A6").Value
End Sub


Mike

"Tdp" wrote:

I have two textboxes that both display values from the same cell. The idea is
the change the value on one of the textbox1, that should change the textbox2
value at the same time. But at the moment value will only change if I click
on textbox2.
To clarify!!!
I will start with the worksheet(4). In cell A7 has a value which I enter
daily. Cell A6 then calculates =SUM(1013-(A7))*28. The two values A6 and A7
are displayed in UserForm1 TextBox1 and TextBox2.
TextBox1 = A7
TextBox2 = A6

I am trying to do this all on vb code..........but with no luck!



--
Tdp

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
Textbox values won't change untill clicked on!!!!!!!!!!! Tdp Excel Discussion (Misc queries) 2 November 11th 08 11:02 AM
Change Macro button color after clicked Cong Nguyen Excel Discussion (Misc queries) 2 November 30th 07 03:55 PM
Cell contents not recognised untill clicked Ade Excel Discussion (Misc queries) 3 March 28th 07 03:08 AM
How to hide values in a running balance untill new data is entere. doggydog Excel Discussion (Misc queries) 1 March 9th 05 06:58 AM
can't get to change from portrait to landscape even after clicked. linda1960w Excel Discussion (Misc queries) 0 February 28th 05 05:57 PM


All times are GMT +1. The time now is 05:16 PM.

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"