Macro Help - Pulling information from the web stopped working

chicago60614

New Member
Joined
Jun 9, 2011
Messages
1
I have used the macro below to pull information from a website and then paste the information into specific cells in excel. This has worked for almost 1 year. Excel would open the webpage into excel (i.e. bring in data, pictures, etc) via "Workbooks.Open Filename:=webpage" I will then pull the data from the specific cells. Over the last day or so, excel has stopped bringing in the information as a webpage and now opens it as website code. It converts the webpage into text via the text wizard. I'm confused why this changed and it may not even be an issue with the macro below. Maybe its a setting in excel. Any help would be appreciated.

Sub TEST()
Dim webpage As String
Application.ScreenUpdating = False
For x = 2 To 100 Step 1
For y = 1 To 248 Step 1
webpage = Worksheets("Input").Cells(x, y).Value
Workbooks.Open Filename:=webpage
Cells(90, 9).Value = "=A100"
Range("I90").Select
Selection.AutoFill Destination:=Range("I90:I120"), Type:=xlFillDefault
Range("I90:I120").Select
Selection.Copy
Windows("Suburb Data Set.xls").Activate
Sheets("Placeholder").Activate
Range("B1:B10").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("o31").Select
Selection.Copy
Sheets("Input").Select
Cells(x, y).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Placeholder").Select
Range("B1:B31").Select
Selection.ClearContents
Windows("maps").Activate
Application.DisplayAlerts = False
ActiveWindow.Close
Application.DisplayAlerts = True
Next y
Next x
Done:
Sheets("Input").Activate
Application.ScreenUpdating = True
End Sub
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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