Create UserForm with Web Browser Functionality @Exceltrainingvideos
Create UserForm with Web Browser Functionality  @Exceltrainingvideos
Uploaded January 2020 | Updated November 2026, 2 days ago
How to create a user-form with basic web browser functionality using VBA.
Here's the complete VBA code:
Option Explicit

Private Sub cmdBack_Click()
On Error Resume Next
WebBrowser1.GoBack
Err.Clear
End Sub

Private Sub cmdClose_Click()
Unload Me
End Sub

Private Sub cmdForward_Click()
On Error Resume Next
WebBrowser1.GoForward
Err.Clear
End Sub

Private Sub cmdNavigate_Click()
WebBrowser1.Navigate "http://www." & TextBox1.Text
End Sub

Private Sub UserForm_Click()

End Sub

Private Sub UserForm_Initialize()
With Application
.WindowState = xlMaximized
Zoom = Int(.Width / Me.Width * 100)
Width = .Width
Height = .Height
End With
WebBrowser1.Navigate "https://www.youtube.com"
End Sub
Create UserForm with Web Browser FunctionalityOpen UserForm in Another Workbook || 2021Two Methods to Loop through WorksheetsCalling Function from SubUNIQUE FunctionUsing Application Run in Excel VBA || 2021Automate Date Validation Using VBAOpen Specific Worksheet at Specific Location on Opening Workbook || 2021Index, Match and Xlookup2021 | Get Business Addresses from Outlook Automatically || 2021Navigating Worksheets Using Combobox Activex ControlFilter Data Based on Criteria in Selected Cell | 2021
Dinesh Kumar Takyar |

Create UserForm with Web Browser Functionality

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER