Steve Manning
New Member
- Joined
- Sep 10, 2002
- Messages
- 3
I get an error with the following using Excel2000:
My VBA code first opens a new worksheet.
Next it opens a form with a refedit box and text box. I want to either select a cell from a worksheet using the refedit and then transport its value into a cell in the new worksheet or input a manual value into the textbox which then puts its text into a cell in the new worksheet. I do this by using the refedit change property to change the textbox. Then use the textbox change property to input it's value into a cell in the new worksheet.
So the textbox part works fine, however when I try and use the refedit box it crashes at the point when the refedit change property sends its value to the textbox where the textbox change property tells it to enter its value into the worksheet.
It is strange because if I don't open a new worksheet with vb code (ie: use an already established worksheet) it works fine.
It is hard to explain all of this in such a short form. Any help will be great. Thanks
My VBA code first opens a new worksheet.
Next it opens a form with a refedit box and text box. I want to either select a cell from a worksheet using the refedit and then transport its value into a cell in the new worksheet or input a manual value into the textbox which then puts its text into a cell in the new worksheet. I do this by using the refedit change property to change the textbox. Then use the textbox change property to input it's value into a cell in the new worksheet.
So the textbox part works fine, however when I try and use the refedit box it crashes at the point when the refedit change property sends its value to the textbox where the textbox change property tells it to enter its value into the worksheet.
It is strange because if I don't open a new worksheet with vb code (ie: use an already established worksheet) it works fine.
It is hard to explain all of this in such a short form. Any help will be great. Thanks