Problem pasting xml data

EDUCATED MONKEY

Board Regular
Joined
Jul 17, 2011
Messages
218
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
The set up is office 2007 xp pro ie 8<o:p></o:p>
I am use a sub that was worked with ordinary text, but for some reason it will not past the returned xml.<o:p></o:p>
<o:p> </o:p>
I can get the xml copy and past in the worksheet column no problem <o:p></o:p>
I recorded a macro and the result was this code <o:p></o:p>
Columns("A:A").Select<o:p></o:p>
ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _<o:p></o:p>
False<o:p></o:p>
Which is not that different to the one I have used in the past with success so what I am doing wrong?<o:p></o:p>
Worksheets("INCOMMING_DATA").Range("A1").Select<o:p></o:p>
ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _<o:p></o:p>
False<o:p></o:p>
Nether version works in the case, however at one point I though I seen the data in column A then it disappeared <o:p></o:p>
I have investigated the url is correct as I can see the data arrive in the browser, and I am able to copy and past that with out any problem <o:p></o:p>
Rich (BB code):
Sub RetriveAuthor()
'
' RetriveAuthor Macro
' Macro recorded 09/08/2011 by Peter Hayward
'
' Keyboard Shortcut: Ctrl+a Columns("A:A").Select
Dim Q As String
Dim aurl As String
Dim EXP
                          Sheets("CONTROL").Select
            Q = Worksheets("CONTROL").Range("C2").Value ' pass AUTHOR in
aurl = "http://api.alibris.com/v1/public/search?wquery=" & Q & "&apikey="
                       Set EXP = CreateObject("InternetExplorer.application")
                                  EXP.Visible = True
                                       EXP.Navigate (aurl)
                                
                   Application.Wait (Now + TimeSerial(0, 0, 4))
                                   SendKeys "^a"
                                   SendKeys "^c"
                  Application.Wait (Now + TimeSerial(0, 0, 1))
                        
                          Worksheets("INCOMMING_DATA").Select
                          
                        Worksheets("INCOMMING_DATA").Range("A1").Select
                          
  
    ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
        False
       
End Sub
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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