CommandButton Focus Question

W

wildduffy

I created a commandbutton that calls a routine to print x number of
copies of a selected sheet based on the value of a specific cell.

My problem is that when I change the value in the cell, I have to
click elsewhere or press enter before I click on my commandbutton in
order for it to work. I have tried changing the value of
TakeFocusOnClick but neither seems to work,

Any ideas? I have Excell 2000.


Thanks in advance.
 
N

NickHK

VBA cannot run when you are in Edit Mode - when the cursor is blinking in a
cell.
No option.

By the way, TakeFocusOnClick relates to whether the commandbutton takes the
focus away from the WS when it is clicked. In this situation, it will not
help.

NickHK
 

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