I have a need to link a text box in a user form to cell that contains a formula. I would then want to disable the text box to prevent user entry. My reason for this is that I wish to have the text box (other other indicator) on the form to automatically update its value when the cell it points to changes.
Now, simply inserting a text box and putting the cell name in the ControlSource parameter only works once or twice. When excising the form, the value in the form text box will over write the formula in the cell. So, that is not going to work.
I have also tried inserting a label on the user form and update the label caption when things change on the worksheet itself. This has limited success as I have found instances when the label does not update. Plus ... I dislike having populate the form and worksheet with numerous lines of code just to accomplish this simple task.
Ideally, if I could have a text box or label where I could insert a formula ... would be fantastic. But, alas, I cannot find a way to do this. Does anyone have a work around that is simple and allows me to use text box on the form and not have to rely on VBA code to update a label caption?
Steve
Now, simply inserting a text box and putting the cell name in the ControlSource parameter only works once or twice. When excising the form, the value in the form text box will over write the formula in the cell. So, that is not going to work.
I have also tried inserting a label on the user form and update the label caption when things change on the worksheet itself. This has limited success as I have found instances when the label does not update. Plus ... I dislike having populate the form and worksheet with numerous lines of code just to accomplish this simple task.
Ideally, if I could have a text box or label where I could insert a formula ... would be fantastic. But, alas, I cannot find a way to do this. Does anyone have a work around that is simple and allows me to use text box on the form and not have to rely on VBA code to update a label caption?
Steve