<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exel Add-in create XML in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112971#M50598</link>
    <description>&lt;P&gt;I want to automate process in which i fill Xlsm file then click on Add ins to create XML file to import it to a company system.&lt;/P&gt;&lt;P&gt;Can anyone help me to write code to do this.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 20:25:40 GMT</pubDate>
    <dc:creator>marwagamal</dc:creator>
    <dc:date>2024-08-08T20:25:40Z</dc:date>
    <item>
      <title>Exel Add-in create XML</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112971#M50598</link>
      <description>&lt;P&gt;I want to automate process in which i fill Xlsm file then click on Add ins to create XML file to import it to a company system.&lt;/P&gt;&lt;P&gt;Can anyone help me to write code to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:25:40 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112971#M50598</guid>
      <dc:creator>marwagamal</dc:creator>
      <dc:date>2024-08-08T20:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exel Add-in create XML</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112982#M50602</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Excel VBA (Macro):&lt;/STRONG&gt; Write a VBA script to automate the process of filling in the data within the XLSM file. You can create a macro that inputs the required data, possibly even pulling from another data source like a CSV file or a database.&lt;/P&gt;&lt;P&gt;Use the code below, making the necessary modifications according to your requirements as mentioned below.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Modify ws.Range("A1:A" &amp;amp; ws.Cells(ws.Rows.Count, "A").End(xlUp).Row) to specify the range you want to export.&lt;/LI&gt;&lt;LI&gt;Adjust the Column1, Column2, Column3 elements to match the structure you need in the XML file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Sub CreateXML()&lt;BR /&gt;Dim xmlDoc As Object&lt;BR /&gt;Dim rootElement As Object&lt;BR /&gt;Dim dataElement As Object&lt;BR /&gt;Dim cell As Range&lt;BR /&gt;Dim ws As Worksheet&lt;BR /&gt;Dim xmlFileName As String&lt;BR /&gt;&lt;BR /&gt;' Create the XML Document object&lt;BR /&gt;Set xmlDoc = CreateObject("MSXML2.DOMDocument")&lt;BR /&gt;xmlDoc.appendChild xmlDoc.createProcessingInstruction("xml", "version='1.0' encoding='UTF-8'")&lt;BR /&gt;&lt;BR /&gt;' Create the root element&lt;BR /&gt;Set rootElement = xmlDoc.createElement("Data")&lt;BR /&gt;xmlDoc.appendChild rootElement&lt;BR /&gt;&lt;BR /&gt;' Set the worksheet&lt;BR /&gt;Set ws = ThisWorkbook.Sheets("Sheet1") ' Modify to your sheet name&lt;BR /&gt;&lt;BR /&gt;' Loop through the rows and columns to add elements to the XML&lt;BR /&gt;For Each cell In ws.Range("A1:A" &amp;amp; ws.Cells(ws.Rows.Count, "A").End(xlUp).Row)&lt;BR /&gt;' Create an element for each row&lt;BR /&gt;Set dataElement = xmlDoc.createElement("Row")&lt;BR /&gt;&lt;BR /&gt;' Add attributes or sub-elements as needed&lt;BR /&gt;dataElement.appendChild xmlDoc.createElement("Column1").appendChild xmlDoc.createTextNode(cell.Value)&lt;BR /&gt;dataElement.appendChild xmlDoc.createElement("Column2").appendChild xmlDoc.createTextNode(cell.Offset(0, 1).Value)&lt;BR /&gt;dataElement.appendChild xmlDoc.createElement("Column3").appendChild xmlDoc.createTextNode(cell.Offset(0, 2).Value)&lt;BR /&gt;&lt;BR /&gt;' Append the row element to the root&lt;BR /&gt;rootElement.appendChild dataElement&lt;BR /&gt;Next cell&lt;BR /&gt;&lt;BR /&gt;' Specify the XML file name and save the file&lt;BR /&gt;xmlFileName = ThisWorkbook.Path &amp;amp; "\output.xml" ' You can modify the path and file name&lt;BR /&gt;&lt;BR /&gt;xmlDoc.Save xmlFileName&lt;BR /&gt;&lt;BR /&gt;MsgBox "XML file created successfully: " &amp;amp; xmlFileName&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 09:06:58 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112982#M50602</guid>
      <dc:creator>Parthiban_Viatris24</dc:creator>
      <dc:date>2024-08-09T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exel Add-in create XML</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112991#M50608</link>
      <description>&lt;P&gt;I already filled the xlsm i'm just pending at the step of Add ins creating Xml file&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i use your code starting from the steps of creating xml file?&lt;/P&gt;&lt;P&gt;Please determine the inputs and outputs of the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new in blueprism&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 10:03:52 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112991#M50608</guid>
      <dc:creator>marwagamal</dc:creator>
      <dc:date>2024-08-09T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exel Add-in create XML</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112992#M50609</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;You can set up a sheet where you enter the path location and filename for the XML file. Use Blue Prism to update these cell values and then execute the macro. The macro will read the values from the cells and use them to create the XML file.&lt;BR /&gt;&lt;BR /&gt;Use MS Excel VBO object to access the file, update the cell and run macro for the same&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Aug 2024 10:41:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/112992#M50609</guid>
      <dc:creator>Parthiban_Viatris24</dc:creator>
      <dc:date>2024-08-09T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exel Add-in create XML</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/113006#M50614</link>
      <description>&lt;P&gt;thanks alot it worked&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:30:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Exel-Add-in-create-XML/m-p/113006#M50614</guid>
      <dc:creator>marwagamal</dc:creator>
      <dc:date>2024-08-09T14:30:08Z</dc:date>
    </item>
  </channel>
</rss>

