From the code below I am looking to return the values from
m_xmlHttp.responseText to a worksheet range.
Preferable 1 cell per line.
So as an example - if this is ran it returns 40 lines of data so I would like A1:A40 filled with the data.
Any suggestions would be greatly appreciated.
Kurt
Option Explicit
Dim m_xmlHttp As MSXML2.XMLHTTP
Public Sub Initialize(ByRef xmlHttpRequest As MSXML2.XMLHTTP)
Set m_xmlHttp = xmlHttpRequest
End Sub
Sub OnReadyStateChange()
Debug.Print m_xmlHttp.ReadyState
If m_xmlHttp.ReadyState = 4 Then
If m_xmlHttp.Status = 200 Then
MsgBox m_xmlHttp.responseText
Else
'Error happened
End If
End If
End Sub
m_xmlHttp.responseText to a worksheet range.
Preferable 1 cell per line.
So as an example - if this is ran it returns 40 lines of data so I would like A1:A40 filled with the data.
Any suggestions would be greatly appreciated.
Kurt
Option Explicit
Dim m_xmlHttp As MSXML2.XMLHTTP
Public Sub Initialize(ByRef xmlHttpRequest As MSXML2.XMLHTTP)
Set m_xmlHttp = xmlHttpRequest
End Sub
Sub OnReadyStateChange()
Debug.Print m_xmlHttp.ReadyState
If m_xmlHttp.ReadyState = 4 Then
If m_xmlHttp.Status = 200 Then
MsgBox m_xmlHttp.responseText
Else
'Error happened
End If
End If
End Sub