<?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 Re: How to merge and unmerge cells in EXCEL workbook? in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/How-to-merge-and-unmerge-cells-in-EXCEL-workbook/m-p/96772#M3208</link>
    <description>Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You need to create a custom code action to unmerge cells. I'm not sure if the latest version of excel vbo available on Blue prism has the action I think it has a merge action but maybe not a unmerge. I've provided the code below you need to create a new action in the excel vbo, add a code stage then add the following code:&lt;BR /&gt;&lt;BR /&gt;Dim ws As Object&lt;BR /&gt;&lt;BR /&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;BR /&gt;&lt;BR /&gt;ws.Activate()&lt;BR /&gt;&lt;BR /&gt;ws.Range(Range).UnMerge&lt;BR /&gt;&lt;BR /&gt;The inputs are Handle, Workbook and Worksheet. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Tue, 29 Nov 2022 14:20:28 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2022-11-29T14:20:28Z</dc:date>
    <item>
      <title>How to merge and unmerge cells in EXCEL workbook?</title>
      <link>https://community.blueprism.com/t5/University-Forum/How-to-merge-and-unmerge-cells-in-EXCEL-workbook/m-p/96771#M3207</link>
      <description>I want to delete H~I columns in workbook.&lt;BR /&gt;Some cells of H~I columns are merged with the cells in J~L columns.&lt;BR /&gt;If I select and delete the H~I columns, J~L columns are alse be deleted.&lt;BR /&gt;&lt;BR /&gt;I think maybe I can unmerge the cells, delete H~I columns and then merge the cells again.&lt;BR /&gt;&lt;BR /&gt;I'm now facing another problem that Business Object[MS Excel VBO] has no action that can do merging and unmerging.&lt;BR /&gt;So how can I set the robot the merge and unmerge cells in workbook?&lt;BR /&gt;&lt;BR /&gt;regards!</description>
      <pubDate>Tue, 29 Nov 2022 12:21:57 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/How-to-merge-and-unmerge-cells-in-EXCEL-workbook/m-p/96771#M3207</guid>
      <dc:creator>HWXie</dc:creator>
      <dc:date>2022-11-29T12:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge and unmerge cells in EXCEL workbook?</title>
      <link>https://community.blueprism.com/t5/University-Forum/How-to-merge-and-unmerge-cells-in-EXCEL-workbook/m-p/96772#M3208</link>
      <description>Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You need to create a custom code action to unmerge cells. I'm not sure if the latest version of excel vbo available on Blue prism has the action I think it has a merge action but maybe not a unmerge. I've provided the code below you need to create a new action in the excel vbo, add a code stage then add the following code:&lt;BR /&gt;&lt;BR /&gt;Dim ws As Object&lt;BR /&gt;&lt;BR /&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;BR /&gt;&lt;BR /&gt;ws.Activate()&lt;BR /&gt;&lt;BR /&gt;ws.Range(Range).UnMerge&lt;BR /&gt;&lt;BR /&gt;The inputs are Handle, Workbook and Worksheet. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:20:28 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/How-to-merge-and-unmerge-cells-in-EXCEL-workbook/m-p/96772#M3208</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-11-29T14:20:28Z</dc:date>
    </item>
  </channel>
</rss>

