G
Guest
Hi,
I am currently working on a userform where I use textboxes to display from a
workbook. Everytime the workbook calculates the texboxes are updated. It was
going all fine until I hit a limit and the above compile error message came
up.
If anyone could help me make my code simpler and more efficient I would
greatly appreciate it.
I use these code(of course hundreds of them because I have several option
buttons and the value of the txtboxes must change) when the workbook is
calculated:
UserForm1.TextBox1.Value = Sheets("Calculation").Range("A1").Value
UserForm1.TextBox1.Text = Sheets("Calculation").Range("A1").Text
I was wondering if one has to specify the text also everytime the value is
changing? If I can fix the text style I can probably get rid of the problem.
Thanks for your help,
Ozgur
I am currently working on a userform where I use textboxes to display from a
workbook. Everytime the workbook calculates the texboxes are updated. It was
going all fine until I hit a limit and the above compile error message came
up.
If anyone could help me make my code simpler and more efficient I would
greatly appreciate it.
I use these code(of course hundreds of them because I have several option
buttons and the value of the txtboxes must change) when the workbook is
calculated:
UserForm1.TextBox1.Value = Sheets("Calculation").Range("A1").Value
UserForm1.TextBox1.Text = Sheets("Calculation").Range("A1").Text
I was wondering if one has to specify the text also everytime the value is
changing? If I can fix the text style I can probably get rid of the problem.
Thanks for your help,
Ozgur