<?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: Excel - Looking for method to execute Text to Columns in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98149#M45977</link>
    <description>&lt;P&gt;Hi &lt;SPAN&gt;Vaibhav&lt;/SPAN&gt;, thank you for your response.&lt;/P&gt;
&lt;P&gt;It's funny that you mention performing a Macro, as I got that idea also as soon as I posted this. You're quite right, it does the job well, although I'd be interested to hear if there is a code stage-based solution, as I know that some recipients may not be permitted to open files with macros embedded. However, I think this is the best approach for the time being! Many Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 14:04:08 GMT</pubDate>
    <dc:creator>john.hammond</dc:creator>
    <dc:date>2023-07-04T14:04:08Z</dc:date>
    <item>
      <title>Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98147#M45975</link>
      <description>&lt;P&gt;Having a bit of a mare with writing dates into an Excel column, which I'll briefly expand upon before mentioning what it is I'm after:&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I'm sourcing data from a number of spreadsheets. This is collated by a Power Query (where the dates all appear in the format dd/mm/yyyy). These are read into a Blue Prism collection (where the dates all STILL appear in the format dd/mm/yyyy). Writing this collection to Excel randomly throws out the odd mm/dd/yyyy format (when the date is possible to do so, ie. 01/11/2023 will come out as 11th January, but 28/08/2023 will remain 28th August). Have searched high and low for a way around this (all locale settings appear to be correct), and the best I can currently do is pre-format the column in Excel to be Text and then write into it. This preserves the correct date format. Unfortunately, off the back of these date columns, I have a number of formulae that need to check the date(s) entered, which now do not function correctly. The only workaround I currently have for this is to perform the write in two steps - one up to the date column (the date column I write to is hidden, and another column picks it up in the correct format) and then a second write action for the rest of the collection in the proceeding columns. This is not ideal, however, and I'm looking for another solution.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;What I would like to do is emulate the functionality within Excel that allows text to be parsed as dates (after the point of having written the data). Manually, I would do this by clicking Text-to-Columns, Delimited, Next, Next, Date (DMY). Would somebody be able to help me with the code stage required to do this, if it is even possible?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 12:34:34 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98147#M45975</guid>
      <dc:creator>john.hammond</dc:creator>
      <dc:date>2023-07-04T12:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98148#M45976</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;As per my understanding of your query, you are trying to change the format of a column which has dates in it (automatically saving as MM/dd/YYYY) and you are trying to change the format to "dd/MM/YYYY". If my understanding is correct, this can be resolved with help of macro.&lt;/P&gt;
&lt;P&gt;----Code---&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Sub test()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Dim wsThis As Worksheet&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Dim lastrow As Integer&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Set wsThis = ThisWorkbook.Worksheets("Sheet1")&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; lastrow = wsThis.Cells(wsThis.Rows.Count, "A").End(xlUp).Row&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; wsThis.Range("A1:A" &amp;amp; lastrow).NumberFormat = "dd/MM/yyyy"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;--------End of Code-----&lt;/P&gt;
&lt;P&gt;I have tried it in macro and worked well. You could also try it.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35715.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35743i444E4820657ACF3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35715.png" alt="35715.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;correct me if I am wrong.&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;/DIV&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vaibhav.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:53:56 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98148#M45976</guid>
      <dc:creator>Vaibhav9878</dc:creator>
      <dc:date>2023-07-04T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98149#M45977</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Vaibhav&lt;/SPAN&gt;, thank you for your response.&lt;/P&gt;
&lt;P&gt;It's funny that you mention performing a Macro, as I got that idea also as soon as I posted this. You're quite right, it does the job well, although I'd be interested to hear if there is a code stage-based solution, as I know that some recipients may not be permitted to open files with macros embedded. However, I think this is the best approach for the time being! Many Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 14:04:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98149#M45977</guid>
      <dc:creator>john.hammond</dc:creator>
      <dc:date>2023-07-04T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98150#M45978</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;Yes, that is a nice point as everyone wont be having permission to open macro. But its a script and we are invoking it from our end, So, I think there wont be any issue with others opening the macro as they can't see this. We can use this macro as supporting file.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 14:12:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98150#M45978</guid>
      <dc:creator>Vaibhav9878</dc:creator>
      <dc:date>2023-07-04T14:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98151#M45979</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1981"&gt;@john.hammond&lt;/a&gt; &amp;amp; &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53273"&gt;@Vaibhav9878&lt;/a&gt;&lt;A href="https://community.blueprism.com/network/profile?UserKey=5e2a9817-1e2c-4661-b366-b278464966ee" target="" class="author" aria-label="Yeswa Vaibhav Nerella Press space to toggle pop up" aria-haspopup="dialog" aria-controls="bio-bubble-popup-5e2a9817-1e2c-4661-b366-b278464966ee-5"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you are just looking to set the date format of a column, you can use the "Format Cell" action in the "MS Excel VBO" VBO. "Format Cell" is somewhat of a misnomer for that action in that you can also format ranges. Take for example the following stage:&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35716.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35745i8D0DE078C3A0EB2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35716.png" alt="35716.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;It sets the date format of the entire "F" column to "dd/MM/yyyy". Also, because it sets the format at the column level, as opposed to the individual cell level, it results in smaller file sizes and new rows added are automatically formatted accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 17:06:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98151#M45979</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-07-04T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel - Looking for method to execute Text to Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98152#M45980</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes your option is actually good as it is inside the Blue Prism. Thanks for the answer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 13:35:17 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Looking-for-method-to-execute-Text-to-Columns/m-p/98152#M45980</guid>
      <dc:creator>Vaibhav9878</dc:creator>
      <dc:date>2023-07-05T13:35:17Z</dc:date>
    </item>
  </channel>
</rss>

