Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
CommandButton Focus Question
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
CommandButton Focus Question
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 wrote in message ps.com... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
UserForm - Setting focus to a CommandButton based on a Cell's contents | Excel Programming | |||
Take Focus Off of CommandButton When Exiting UserForm | Excel Programming | |||
CommandButton Question | Excel Programming | |||
Simpel commandbutton question | Excel Programming | |||
Simple Question: Hiding a CommandButton | Excel Programming |