combobox scroll down enabled

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Vog sir this the new post.:-D

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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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