View Single Post
 
Old 10-11-2014, 02:08 AM
NobodysPerfect NobodysPerfect is offline Windows 8 Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default Toggle Button takes focus and thus changes selection

Hi to all,

I'm using an ActiveX toggle button in one of my documents. The problem is: toggle buttons do not have a TakeFocusOnClick = False property like command buttons do.

So clicking the toggle button means a selection change, but I'd like to continue working at (former) cursor position.

Application.GoBack at the end of the tgl_Click procedure does not work the way it should (for my purpose).

I even tried an app_WindowSelectionChange event, but I simply did not succeed in saving the selection.range before clicking the toggle button.

Do you have an idea?

Any help appreciated ... thanks
NP
Reply With Quote