Disable/Remove Scroll Bars in Webcontrol in Excel Using vba

sanits591

Active Member
Joined
May 30, 2010
Messages
253
Hi,

I am using the following code, for navigating to the website through web control and a listbox on a userform, but the problem is, this code does not work for removing the scroll bars:

Requesting for help on this.

Code:
Private Sub lstResults_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim strURL As String
    If lstResults.ListIndex <> -1 Then

        strURL = Worksheets("tmpSearch").Range("A" & lstResults.ListIndex + 2).Hyperlinks(1).Address
        WebBrowser1.Navigate strURL
    Do
        DoEvents
    Loop Until Me.WebBrowser1.ReadyState = READYSTATE_COMPLETE
    
    Me.WebBrowser1.Document.body.doscroll = "no"
  
'for scrolling down to the lower portion of the webpage
WebBrowser1.Document.parentWindow.Scroll 0, 4000
    
    
    End If


End Sub
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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