Inserting HTML Code to Auto Populate- Unable to get Browser to Work from VBA Post.


New Member
Oct 9, 2014
Greetings.. I have read the rules to post and searched the forums finding something I thought would work for me but have been unable to implement the suggested directions with success despite their clear step by step process and would be grateful for some help.

I am building an analytics dash with a lot of graphs and charts for an oil and gas company. I am trying to insert a bit of html code that brings up a small box with today's current oil prices. This info could the be plugged into another cell that would change certain elements and allow better forecasting.

The info I am trying to link comes from here which is a oil and gas site that offers free html to put this table info on your website.
Code for Crude Oil Dashboard

I have been using the directions I found in this forum thread

However, as I follow the directions, I am getting an error for the browser itself. The error reads "Compile Error: Method or Data Member Not Found." As well, from the code instruction in aforementioned thread, the ".WebBrowser1" portion is highlighted. Can someone kindly tell me where I am messing up? And- if you can look at the code for the oil price html I am trying to insert-- can you tell me a simpler method to use to accomplish this task or if I am attempting the impossible all together.

Thank you in advance for your time and attention. I really do appreciate the help. Best, Jamie Clark

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...