XML Table Fetch Backup
XML Table Fetch Backup
Dim i, j, k As Integer
Dim x(1, 0) As Variant
Dim y As Range
Dim rg, itemval, bleh, target As String
x(1, 0) = "<>"
Application.ScreenUpdating = False
Sheets("Output").Cells.Clear
ActiveWorkbook.Save
k = Application.WorksheetFunction.CountA(Sheets("Data").Range("A:A"))
Sheets("Output").Activate
Sheets("Output").Range("A1").Select
ActiveCell.SpecialCells(xlLastCell).Select
With Range("A" & ActiveCell.Row + 2)
.Value2 = Item.Value2
.Select
End With
bleh = ActiveCell.Offset(1, 0).Address
'column C, ABC variable
Sheets("Output").Activate
Range("BS5:BS6") = x
Sheets("XML").Range("XML[#All]").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("BS5:BS6"), CopyToRange:=Range(target), Unique:=False
Next Item
Application.ScreenUpdating = True
End Sub