Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default SendKeys command to select an OptionButton

I'm using a closed 3rd party addin that I want to automate with the SendKeys
command. How can I "select" one OptionButton over another? Changing focus
with the SendKeys "{TAB}" works just fine but there doesn't appear to be any
combination of keystrokes that will actually move the "dot" from one
OptionButton to the other.

What am I missing?

Thanks,
Fred


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SendKeys command to select an OptionButton

Have you tried the enter key after the focus is shifted to the option
button.

SendKeys "{TAB}{TAB}~"

--
Regards,
Tom Ogilvy

"Fred Russell" wrote in message
...
I'm using a closed 3rd party addin that I want to automate with the

SendKeys
command. How can I "select" one OptionButton over another? Changing

focus
with the SendKeys "{TAB}" works just fine but there doesn't appear to be

any
combination of keystrokes that will actually move the "dot" from one
OptionButton to the other.

What am I missing?

Thanks,
Fred




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default SendKeys command to select an OptionButton

Tom,

Tried it, doesn't work. Seems like there should be a way.

Thanks,
Fred


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default SendKeys command to select an OptionButton

Hi Fred,

On the control properties window, Give a value for the "accelerator". The
letter you use
will be underligned in the control label.
Using ALT + the underligned letter should changed its value to True.
Regards
Jean-Yves

"Fred Russell" wrote in message
...
I'm using a closed 3rd party addin that I want to automate with the

SendKeys
command. How can I "select" one OptionButton over another? Changing

focus
with the SendKeys "{TAB}" works just fine but there doesn't appear to be

any
combination of keystrokes that will actually move the "dot" from one
OptionButton to the other.

What am I missing?

Thanks,
Fred




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default SendKeys command to select an OptionButton

Hi Jean-Yves,

Unfortunately, the software is closed and I'm unable to assign an
accelerator.

Thanks,
Fred




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SendKeys command to select an OptionButton

This worked in Excel itself - (sending a space)

Private Sub CommandButton1_Click()
SendKeys "{Tab}{Tab} "
End Sub

--
Regards,
Tom Ogilvy

"Fred Russell" wrote in message
...
Hi Jean-Yves,

Unfortunately, the software is closed and I'm unable to assign an
accelerator.

Thanks,
Fred




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default SendKeys command to select an OptionButton

Tom,

Your a genius, the space works!

Thanks,
Fred


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
cant select chart command bar Khoshravan Charts and Charting in Excel 1 July 20th 06 08:10 AM
The dreaded Sendkeys command David Morton Excel Programming 1 November 13th 04 03:52 PM
Syntax for Excel variable using a SQL Select/From/Where Command... Chip Pearson Excel Programming 0 September 8th 04 11:15 PM
Sendkeys VBA and command line Bobsa Excel Programming 1 April 15th 04 10:12 AM
SendKeys command not focusing on the correct open program mjwillyone[_12_] Excel Programming 0 December 30th 03 04:06 AM


All times are GMT +1. The time now is 12:32 PM.

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

About Us

"It's about Microsoft Excel"