Share via

need xmlhttp request like feature in excel for mac 2011

Anonymous
2012-02-25T09:07:55+00:00

Hi,

I'm using a webservice to collect data to be inserted into Excel cells. The data depends on other cell values.

The general idea is to use a function that uses a xmlhttp request like pattern to get the data.

Yet, however all I found on the web did not work as intended, all failed with ActiveX creation not possible.

The general code idea looks like this:

Function getData(y As String, m As String, d As String, cur As String) As Double

'  Function receives data via GET to be inserted into a cell

'  Usage: use '=getData(A1, C2, A3, A4)' inside a cell

Dim xml As Object

Dim url As String

url = "http://some.server.com/services/data-via-get"

Set xml = CreateObject("Msxml2.ServerXMLHTTP.6.0")

'    build, and send request, use responseText to buld return value

End Function

Are there any alternatives that can work on Excel for mac 2011?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Jim G 134K Reputation points MVP Volunteer Moderator
2012-04-09T01:22:59+00:00

Active-X is an open source technology that is Windows-only. So far, no one has ported Active-X to the Mac, so anything Active-X simply won't work on a Mac.

And it is obvious that Mac OS is not Windows, so any functionality that relies on something exclusive to Microsoft Windows isn't going to work either.

What you can do is make a web query, as described here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;274787

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more