xml import macrofrom within Internet Explorer

leedon1

New Member
Joined
Jul 13, 2011
Messages
4
I am trying to use this code. It works fine if I execute the file directly. But when I try opening file via Internet Explorer (required in my app), the xml import fails in the macro.

Any help is appreciated greatly.
===============================================
Sub Auto_Open()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+z
'
' Application.Visible = False

Application.DisplayAlerts = False
Sheet2.Select

Range("B5:O100").Select

ActiveWorkbook.XmlMaps("Root_Map").Import URL:= _
"http://someSite.com/ExcelTest.xml"

Sheet4.Select

ActiveWorkbook.SaveAs Filename:="C:\Users\Don\Documents\Some PMO\Executive_Portfolio_Dashboard_ITOPS_PMO_2011.htm", FileFormat:=xlHtml


Application.DisplayAlerts = True
ActiveWorkbook.Close False
Executive_Portfolio_Dashboard_ITOPS_PMO_2011.xlsm.Close False
End Sub
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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