Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2016, 04:39 AM
highrise955 highrise955 is offline Open DropDownList Automatically Windows 10 Open DropDownList Automatically Office 2013
Advanced Beginner
Open DropDownList Automatically
 
Join Date: Mar 2016
Posts: 37
highrise955 is on a distinguished road
Default Open DropDownList Automatically


Anyone know how to open a dropdownlist automatically upon receiving focus? I tried using the following code options I found in a Google search...

Code:
Private Sub MethodInspect_GotFocus()
    MethodInspect.Dropdown
End Sub

Private Sub MethodInspect_GotFocus()
    Me.MethodInspect.Dropdown
End Sub

Private Sub MethodInspect_GotFocus()
    SendKeys "%{Down}"
End Sub
...but nothing happens. ("MethodInspect" is the Title of the dropdownlist)

Any help would be appreciated.
Reply With Quote
  #2  
Old 04-02-2016, 05:01 AM
gmayor's Avatar
gmayor gmayor is offline Open DropDownList Automatically Windows 10 Open DropDownList Automatically Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

What sort of dropdown list?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 04-02-2016, 05:04 AM
highrise955 highrise955 is offline Open DropDownList Automatically Windows 10 Open DropDownList Automatically Office 2013
Advanced Beginner
Open DropDownList Automatically
 
Join Date: Mar 2016
Posts: 37
highrise955 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
What sort of dropdown list?
Hi Graham!

It's a Combo box content control in Word 2013.
Reply With Quote
  #4  
Old 04-02-2016, 05:51 AM
gmaxey gmaxey is offline Open DropDownList Automatically Windows 7 32bit Open DropDownList Automatically Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

hr955

SendKeys will display it briefly using the OnEnter event, but there doesn't seem to be (or I can't) a find a way to make it stick:

Code:
Private Sub Document_ContentControlOnEnter(ByVal oCC As ContentControl)
  If oCC.Type = wdContentControlDropdownList Then SendKeys "%{DOWN}"
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open DropDownList Automatically Can a Folder be set to automatically open all the Files within it? Roughdiamond Windows 1 03-12-2016 12:50 AM
Open DropDownList Automatically Dropdownlist-Parsing values to various ContentControls highrise955 Word VBA 9 03-08-2016 02:03 AM
Attachments do not open automatically in Outlook 2016 417144 Outlook 0 01-10-2016 12:32 PM
VBA ppt ComboBox behaivor: 1.OnFocus change value 2. get dropdownlist doesn't disappear after mousec janism22 PowerPoint 2 03-26-2015 12:35 AM
Sending open mails automatically Fackouch Outlook 0 05-03-2012 10:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft