In this article you will learn how to use a web browser in the user form. You can search anything or open a website using the text box.
![Web Browser in User form](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-1.jpg)
Below are the steps to create the web browser in the user form-
- Go to the Visual basic editor (Press Alt+F11)
- Open the Toolbox.
![Open the Toolbox](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-4.jpg)
- Right Click on the Tool box and click on Additional Controls.
![Additional Controls Option](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-5.jpg)
- Select the Microsoft Web Browser in Additional Controls window.
![Additional Controls window](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-6.jpg)
- Web Browser control will be added in the Tool box
![Web Browser control](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-7.jpg)
- Drag the Web browser on the user form.
- Create a Text box to search or typing the URL
- Create a Command Button to search.
![User form](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-8.jpg)
- Double Click on the command button and put the below given code-
Private Sub CommandButton1_Click() Me.WebBrowser1.Navigate Me.TextBox1.Value End Sub
![Coding](https://www.pk-anexcelexpert.com/wp-content/uploads/2018/11/Web-browser-in-User-form-9.jpg)
Click here to download this Excel workbook.