Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activate an activex control on a sheet in excel 97?

Using Excel 2003 you can place the following code into the keydown event of
an activex control and it works, but it produces an error message in excel 97.

me.oleobjects("CheckBox2").activate

Any help with this would be very much appreciated.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Activate an activex control on a sheet in excel 97?

I assume you are running that code from the click event of another ActiveX,
or while another ActiveX has focus. In XL97 you would need to deselect
before trying to select another, or indeed before doing many other things
come to that. If you REALLY need to activate your checkbox try preceding
with:

Activecell.activate
me.oleobjects("CheckBox2").activate

Be aware that controls that have focus lead to all sorts of problems in
XL97, not only the problem you've encountered.

Regards,
Peter T

"VLONC7109" wrote in message
...
Using Excel 2003 you can place the following code into the keydown event

of
an activex control and it works, but it produces an error message in excel

97.

me.oleobjects("CheckBox2").activate

Any help with this would be very much appreciated.

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
How to add an ActiveX control in Excel? Dicaprio Excel Worksheet Functions 0 November 4th 05 03:30 AM
ActiveX control in Excel [email protected] Excel Programming 2 January 22nd 05 02:04 AM
ActiveX ComboBox Control on Sheet quartz[_2_] Excel Programming 2 January 13th 05 06:31 PM
Remove all items from an ActiveX control on a sheet quartz[_2_] Excel Programming 4 January 13th 05 06:31 PM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"