|
-
Jul 13th, 2003, 11:10 AM
#1
Thread Starter
New Member
Appending strings to RefEdit instead of replacing
In Excel's userform, there is a special control called "RefEdit", it is similar to a textbox but is used to retrieve cell address(es).
My question is: When you select a cell or drag a selection, the RefEdit control always replaces whatever text string you have in it with the cell address(es) of your selection. Is there a way to make it append instead of replace?
For instance, when I run the userform, I type "A1+A2+" in the RefEdit control, then with the mouse I click on cell A3. I was hoping that the text in that RefEdit would change to "A1+A2+A3", but instead I got only "sheet_name!A3". It replaced whatever I typed previously with the cell address I just clicked. How do I append instead of replace?
-
Jul 15th, 2003, 10:37 PM
#2
Fanatic Member
Since no one else has replied...
I don't know. The RefEdit control doesn't really work the same as the similar controls you see in Excel. I think more recent versions of RefEdit have some focus problems. You can append a cell reference to what you already have IF you click back on the RefEdit control before selecting the new cell. In other words, if you set focus back to the control after typing something in the control, the it will be ready to append a new cell reference...somtimes, sort of.
I don't know of any property to change to make it work right. I think the only other way around would be to code the change events to set it to the text you actually want.
-
Jul 16th, 2003, 12:03 AM
#3
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|