ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Avoid Control Cell changing. (https://www.excelbanter.com/excel-programming/336868-avoid-control-cell-changing.html)

Adeptus - ExcelForums.com

Avoid Control Cell changing.
 
Is there any way to avoid the Control Source of a text box (which ha
a formula in it, changing to the string value of the text bo
whenever the Box is selected


Dave Peterson

Avoid Control Cell changing.
 
I actually had to make a change for the controlsource to be changed.

But what do you want to happen when the textbox does change?

If you're just trying to initialize the contents of the textbox when the
userform is shown, you could that in code:

Option Explicit
Private Sub UserForm_Initialize()
Me.TextBox1.Value = Worksheets("sheet2").Range("a1").Value
End Sub

And remove that controlsource.

But what should happen when the textbox is changed? Where should that new value
be saved (if at all)?

"Adeptus - ExcelForums.com" wrote:

Is there any way to avoid the Control Source of a text box (which has
a formula in it, changing to the string value of the text box
whenever the Box is selected.


--

Dave Peterson


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com