combobox scroll down enabled

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,232
Hi all,

Vog sir this the new post.:biggrin:

In Combobox there are multiple values i have it.
i had try to enable the scrol property of combo...see below
With Worksheets("Sheet4").ComboBox1
.SmallScroll Down:=True

but this gives me error - run time 438 , object dosent support.

Can this possble....to scroll down enable?
 
Only one add:

Excel takes All the programs in windows for MouseWheel when SetFocus. For example, if you try to do a mouseWheel in a web browser, nothing occurs.

Solution:

Private Sub ComboBox_LostFocus()
MakeScrollableWithMouseWheel(CboProvincias) = False
Set wb = Nothing
End Sub
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Only one add:

Excel takes All the programs in windows for MouseWheel when SetFocus. For example, if you try to do a mouseWheel in a web browser, nothing occurs.

Solution:

Private Sub ComboBox_LostFocus()
MakeScrollableWithMouseWheel(CboProvincias) = False
Set wb = Nothing
End Sub

Option Explicit

Public WithEvents m_wbForMouseWheel As Workbook
'WithEvents quiere decir que nuestra variable va a "escuchar" los eventos del libro

Private Sub ComboEjemplo_GotFocus()
'Con esto creamos asignamos nuestro libro a la variable
Set m_wbForMouseWheel = ThisWorkbook
'Con esto hacemos que "escuche al scroll del mouse
MakeScrollableWithMouseWheel(ComboEjemplo) = True
End Sub

Private Sub ComboEjemplo_LostFocus()
'¡¡¡¡¡¡SI NO LO HACEMOS, EXCEL SE "APODERA" DEL SCROLL Y NO PODREMOS HACER SCROLL EN OTROS PROGRAMAS!!!!!!

'Con esto hacemos que deje de "escuchar" al scroll del mouse
MakeScrollableWithMouseWheel(ComboEjemplo) = False
'Con esto nos aseguramos que el libro se cierra cuando el ComboBox pierda el foco
Set m_wbForMouseWheel = Nothing
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top