• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Scroll Listbox horizontally in excel vba..

Content of List box only... as of now i am using below code but itis moving row wise...

Private sub Scrollbar1_Change()
if scrollbar1.value <= listbox1.columncount -1 then
listbox.listindex= scrollbar1.value
end if
end sub

as per my knowledge we dont have option called Column index in vba.

Please share your suggestions on this.
 
This is automated scrollbar based on width of listbox. but i need control Scrollbar should linked to listbox.
 

Attachments

  • List Box Control Scroll br.jpg
    List Box Control Scroll br.jpg
    48.5 KB · Views: 46
No worries.. actually i have 2 list boxes in a userform and this scroll bar linked to those two listboxes. if we scroll the scroll bar those two listboxes should scroll horizontally (column wise)
 
Hi Satish ,

I have used a textbox instead of a listbox ; see if this helps.

Narayan
 

Attachments

  • Satish_Example.xlsm
    15.3 KB · Views: 87
Back
Top