About 1,600,000 results
Open links in new tab
  1. vba - Open html file with Workbooks.Open allways in new …

    Feb 3, 2017 · I use Workbooks.Open method to open local html file in excel. This method opens file in new workbook, so then I copy UsedRange into my current Workbook's ActiveSheet. Everything works fine except w...

  2. Open an html page in default browser with VBA? - Stack Overflow

    Apr 2, 2018 · How do I open an HTML page in the default browser with VBA? I know it's something like: Shell "http://myHtmlPage.com" But I think I have to reference the program which will open the page.

  3. simple question: how to open a htm file in vba - MrExcel

    Aug 16, 2004 · How do I open a htm file in vba, while my active workbook/sheet stay'open? Private Sub ShowHelp_Click() Unload Me Show.HelpFile.htm End Sub

  4. Opening an HTML Page in a Macro (Microsoft Excel) - ExcelTips …

    Jan 6, 2024 · Excel allows you to open HTML pages within the program, which is great for some purposes. What if you want to open a browser window, however, from within Excel in order to display an HTML page? This tip highlights two methods you can use, within a …

  5. Reading HTML file in VBA Excel - Stack Overflow

    Dec 31, 2012 · Here's a function for you. It will return the String of the HTML returned by a given URL. Dim HTML As String. With CreateObject("MSXML2.XMLHTTP") .Open "GET", URL, False. .Send. GetHTML = .ResponseText. End With. Just make sure your provided URL is well formed. I.E. it includes the http:// or https:// if appropriate.

  6. Opening An Html Page In A Macro In Excel - ManyCoders

    Apr 17, 2025 · To open an HTML Page in a Macro in Excel, you need to create a new VBA module, add the appropriate code to import the data from the HTML file, and then run the macro. Once the macro runs, your HTML file will be displayed in Excel.

  7. Open HTML file in new Sheet from File Browser - MrExcel

    Sep 30, 2018 · I am trying to hammer out the VBA needed to open a .html file and copy it's contents into Sheet2 of the currently open workbook. My plan is to have a button on Sheet1 that reads "Click to locate file", this will open a dialog and the path will be set as a server path and filtered by .html files.

  8. Extract or Get data from HTML Element in Excel using VBA

    The example here shows how to extract or read the contents inside an HTML element (any element) from Excel using a simple VBA macro.

  9. Best way to access web pages using Excel VBA?

    Nov 30, 2023 · Utilize the getElementById, getElementsByClassName, or other methods provided by the MSHTML library to interact with specific elements on the webpage. Remember to add a reference to "Microsoft Internet Controls" in your VBA project. You can do this by going to Tools -> References in the VBA editor and checking "Microsoft Internet Controls."

  10. Read Local HTML File into String With VBA - Stack Overflow

    Aug 20, 2013 · I have a .HTML file stored on my computer, and I'd like to read the entire file into a string. When I try the super straightforward Dim FileAsString as string Open "C:\Myfile.HTML" for input as #1 Input #1, FileAsString Close #1 debug.print FileAsString

  11. Some results have been removed
Refresh