Hi Please try this : Sub MakeXML() Dim strPath As String Dim rngUsed As Range Dim rngRow As Range Dim wbknew As Workbook With Application.FileDialog(msoFileDialogFolderPicker) .Title = "please Choose Folder to Save XML File" .Show strPath = .SelectedItems(1) End With If strPath = "" Then MsgBox "Exit" End If Set rngUsed = ThisWorkbook.ActiveSheet.UsedRange Application.ScreenUpdating = False ThisWorkbook.SaveAs strPath & "\" & ThisWorkbook.Name, 46 For Each rngRow In rngUsed.Rows rngRow.Copy Set wbknew = Workbooks.Add(1) wbknew.ActiveSheet.Paste wbknew.SaveAs strPath & "\" & wbknew.Name, 46 wbknew.Close Next MsgBox "Done" Application.ScreenUpdating = False End Sub
On 12/6/11, Aindril De <aind...@gmail.com> wrote: > Hi All, > > I have a dataset in Excel. > I have to do the following: > 1) Convert the dataset to XML Format > 2) Create a different XML File for each row. > > Any help would be really appreciated. > > Cheers > -- > > Andy > > -- > FORUM RULES (934+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will > not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Regards Rajan verma +91 9158998701 -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com