Hi ,
The Following is a Part of a VBA Code
In the Above Code I want to put only the UCase(c.Value) in column "A" not the entire arrURL(i) string.
How can i Modify this code to get the result and alos is it possible to modify the bArray too?
Thanks
The Following is a Part of a VBA Code
Code:
Dim c As Range
For Each c In Range(RANGE_WITH_SYMBOLS) '//11 cells with symbols
If Len(c.Value) > 0 Then
ReDim Preserve arrURL(0 To i)
arrURL(i) = "http://www.nseindia.com/content/indices/histdata/"
arrURL(i) = arrURL(i) &[B][COLOR=Red] UCase(c.Value)[/COLOR][/B]
arrURL(i) = arrURL(i) & Format(dtmDate, "dd-mm-yyyy") & "-" & Format(dtmDate, "dd-mm-yyyy") & ".csv"
i = i + 1
End If
Next c
Set oXMLHTTP = New XMLHTTP
hFile = FreeFile
Open strLocalFile For Binary As #hFile
For i = 0 To UBound(arrURL)
oXMLHTTP.Open "GET", arrURL(i), False
oXMLHTTP.send
'Wait for request to finish
Do While oXMLHTTP.readyState <> 4
DoEvents
Loop
bArray = oXMLHTTP.responseBody
[B] [COLOR=Red]Put #hFile, , arrURL(i)[/COLOR][/B]
Put #hFile, , bArray
Next i
In the Above Code I want to put only the UCase(c.Value) in column "A" not the entire arrURL(i) string.
How can i Modify this code to get the result and alos is it possible to modify the bArray too?
Thanks