Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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. Is there a way to modify that so that as I change the value in textbox1, textbox2 changes as well without having to click on textbox2? -- Tdp |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Textbox values won't change untill clicked on!!!!!!!!!!!
Hi,
It may be that your using the Get_Focus event to update textbox2 when you should be using the change event of textbox1 to update textbox2 but we would need to see your code. The code below automatically updates textbox2 whenever textbox1 changes Private Sub TextBox1_Change() TextBox2.Text = TextBox1.Text 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. Is there a way to modify that so that as I change the value in textbox1, textbox2 changes as well without having to click on textbox2? -- Tdp |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Textbox values won't change untill clicked on!!!!!!!!!!!
Hi Mike,
I'll try and explain!! 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 "Mike H" wrote: Hi, It may be that your using the Get_Focus event to update textbox2 when you should be using the change event of textbox1 to update textbox2 but we would need to see your code. The code below automatically updates textbox2 whenever textbox1 changes Private Sub TextBox1_Change() TextBox2.Text = TextBox1.Text 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. Is there a way to modify that so that as I change the value in textbox1, textbox2 changes as well without having to click on textbox2? -- Tdp |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change Macro button color after clicked | Excel Discussion (Misc queries) | |||
Cell contents not recognised untill clicked | Excel Discussion (Misc queries) | |||
How to hide values in a running balance untill new data is entere. | Excel Discussion (Misc queries) | |||
can't get to change from portrait to landscape even after clicked. | Excel Discussion (Misc queries) | |||
How do I add TextBox.values? | Excel Worksheet Functions |