Renaming Text Boxes and Buttons

D

Don Wiss

Normally I can rename text boxes and buttons by changing the name in the
Name Box. But sometimes I can't. In this instance I'd like them to have the
same names as they have on another sheet. This so my clearing macro can be
the same for both sheets, just have the correct sheet selected. Sometimes I
can make the names the same. Sometimes I can't. Is there another way to
rename them?

Don <donwiss at panix.com>.
 
D

Dave Peterson

What's the situation when you can't rename them?

Is the worksheet protected?
Do you have worksheets grouped?
Are you sure you hit enter after you typed the name in the namebox?
 
D

Don Wiss

What's the situation when you can't rename them?

Is the worksheet protected?
Do you have worksheets grouped?
Are you sure you hit enter after you typed the name in the namebox?

No, no, and no. I can rename them, but not to the same name they have on
another sheet. This is something that I usually can do. Anyway, I wrote a
two line macro to rename them.

Don <donwiss at panix.com>.
 
D

Dave Peterson

Did you really mean to answer no to that third question <vbg>?

I'm not sure why you could rename a textbox in code, but not via the user
interface.

One more question...

If the textbox is from the control toolbox toolbar, make sure you go into Design
Mode first (an icon on that same toolbar).
 
D

Don Wiss

If the textbox is from the control toolbox toolbar, make sure you go into Design
Mode first (an icon on that same toolbar).

I have never used a control toolbox text box. Generally I try to avoid the
extra complication of the controls when I can. In this case I don't know
what additional features I'd get by using one, though I suppose I would be
able to tell where it was located on the sheet.

I'm having a bit of a problem now with a combo box from the control
toolbox. I just haven't written out the problem yet to post here. I'll do
so tomorrow, but for now it is getting late here in Brooklyn.

Don <donwiss at panix.com>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top