<?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: Running VBA script for Date time removal in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Running-VBA-script-for-Date-time-removal/m-p/85008#M36065</link>
    <description>You can use Run Macro action after open workbook to run the macro&amp;nbsp;&lt;STRONG&gt;dropDateTime&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Or you can check the extending MS Excel VBO guide to move your code to BP MS Excel Object.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Feb 2020 05:41:00 GMT</pubDate>
    <dc:creator>GopalBhaire</dc:creator>
    <dc:date>2020-02-03T05:41:00Z</dc:date>
    <item>
      <title>Running VBA script for Date time removal</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-VBA-script-for-Date-time-removal/m-p/85007#M36064</link>
      <description>Hi -&amp;nbsp;&lt;BR /&gt;I've generated a script to remove the time from the&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #7a7a7a; cursor: text; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;datetime in order to get a pooled filter.&lt;BR /&gt;The Vba code will not copy directly across to Blue Prism.&lt;BR /&gt;Therefore, I am looking to call the script directly.&lt;BR /&gt;I have saved it in RPA_Functions(In excel Module) and with each instance of opening the desired workbook, I am looking to call this vba into action.&lt;BR /&gt;The data is homogenous, so there is no need to change the VBA script for filtering, but I'm curious to see is it possible to nest something like::&lt;BR /&gt;'&lt;BR /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Private Sub Workbook_Open()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call RPA_Functions.CreateShortcut&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;'&lt;BR /&gt;Within the VBO at the beginning of my process in the VBO open workbook.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28825.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28953iD7979CF9E0B55381/image-size/large?v=v2&amp;amp;px=999" role="button" title="28825.png" alt="28825.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I'd rather not change the object at the source.&lt;BR /&gt;The script used to filter the datetime is below, this works fine it's the above option that interests me.&lt;BR /&gt;Any and all advice is very much appreciated.&lt;BR /&gt;&lt;BR /&gt;'&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Sub CreateShortcut()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.OnKey "+^{C}", "dropDateTime"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="background-color: #ffffff;"&gt;End Sub&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Sub dropDateTime()&lt;BR /&gt;Dim LR As Long, i As Long&lt;BR /&gt;LR = Range("Y" &amp;amp; Rows.Count).End(xlUp).Row&lt;BR /&gt;For i = 2 To LR&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With Range("Y" &amp;amp; i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .NumberFormat = "dd/mm/yy"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Value = CLng(.Value)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;BR /&gt;Next i&lt;BR /&gt;End Sub&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;David O'Sullivan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-VBA-script-for-Date-time-removal/m-p/85007#M36064</guid>
      <dc:creator>DavidO_Sullivan</dc:creator>
      <dc:date>2020-01-31T16:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Running VBA script for Date time removal</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Running-VBA-script-for-Date-time-removal/m-p/85008#M36065</link>
      <description>You can use Run Macro action after open workbook to run the macro&amp;nbsp;&lt;STRONG&gt;dropDateTime&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Or you can check the extending MS Excel VBO guide to move your code to BP MS Excel Object.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2020 05:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Running-VBA-script-for-Date-time-removal/m-p/85008#M36065</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2020-02-03T05:41:00Z</dc:date>
    </item>
  </channel>
</rss>

