Is there a more compact and/or conventional way to write this?
With ActiveSheet.QueryTables.Add(Connection:="URL;http://carbon.brighterplanet.com/flights.txt", Destination:=Range("A2"))
.PostText = "origin_airport=MSN&destination_airport=ORD"
.RefreshStyle = xlOverwriteCells
.SaveData = True
.Refresh
End With
Is there a reason that Connection is written on the first line while PostText is on the second line?
_) to make this fit on the screen better...With ActiveSheet.QueryTables.Add( _ Connection:="URL;http://carbon.brighterplanet.com/flights.txt", _ Destination:=Range("A2"))(Split the lines at the_since this does not come out correctly in comments...)