<?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: Method arguments must be enclosed in parentheses in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77092#M347</link>
    <description>Hi Devneet,&lt;BR /&gt;&lt;BR /&gt;Yes, Need to delimit the date as it contains space on the right side and not able to to convert that date into any format i.e MM/DD/YY,&lt;BR /&gt;without delimiting not able to format the particular cell .&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi kiran P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Jun 2022 12:59:00 GMT</pubDate>
    <dc:creator>Ravikiran44</dc:creator>
    <dc:date>2022-06-01T12:59:00Z</dc:date>
    <item>
      <title>Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77087#M342</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I recorded a macro in excel to delimit the date format using following VB code,&lt;BR /&gt;&lt;BR /&gt;Dim excel as Object = GetInstance(handle)&lt;BR /&gt;&lt;BR /&gt;Range("B13").Select&lt;BR /&gt;Range(Selection, Selection.End(xlDown)).Select&lt;BR /&gt;&lt;STRONG&gt;ActiveWindow.SmallScroll Down:=3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Selection.TextToColumns Destination:=Range("B13"), DataType:=xlDelimited, _&lt;/STRONG&gt;&lt;BR /&gt;TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _&lt;BR /&gt;Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo _&lt;BR /&gt;:=Array(1, 4), TrailingMinusNumbers:=True&lt;BR /&gt;&lt;BR /&gt;But im getting error in the bold lines as "Method arguments must be enclosed in parentheses"&lt;BR /&gt;Please help Anyone !&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi kiran P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 May 2022 09:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77087#M342</guid>
      <dc:creator>Ravikiran44</dc:creator>
      <dc:date>2022-05-27T09:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77088#M343</link>
      <description>Macro code is VBA, which is not the same language as VB.Net, so you can't simply paste macro code into a BP code stage. However the two are similar, so you can use the VBA as a starting point. My guess is the error is asking for brackets in the function, eg &lt;CODE&gt;Selection.TextToColumns&lt;SPAN style="color: #ff0000; background-color: #ffff00;"&gt;(&lt;/SPAN&gt;Destination:=Range..etc..&lt;SPAN&gt;Numbers:=True&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffff00;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 May 2022 15:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77088#M343</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-05-27T15:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77089#M344</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;The equivalent VB .NET code for this would be:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Dim wb, ws As Object
Dim excel, sheet As Object

Const xlDown As Int32 = -4121
Const xlDelimited As Int32 = 1
Const xlDoubleQuote As Int32 = 1

wb = GetWorkbook(Handle, Workbook)
ws = GetWorksheet(Handle, Workbook, Worksheet)

wb.Activate()
ws.Activate()
excel = ws.Application
sheet = excel.ActiveSheet

sheet.Range("B13").Select
sheet.Range("B13", excel.Selection.End(xlDown)).Select
excel.ActiveWindow.SmallScroll(Down:=3)
excel.Selection.TextToColumns(Destination:=sheet.Range("B13"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False, TrailingMinusNumbers:=True)​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Here, you need to pass the workbook and handle variable after you use the 'Create Instance' and 'Open Workbook' actions along with the name of the sheet as an input parameter.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 29 May 2022 01:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77089#M344</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-29T01:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77090#M345</link>
      <description>Hi Devneet,&lt;BR /&gt;&lt;BR /&gt;I tried executing but delimiting is not happening to the cells or do we have any other code stage to delimit the date format.&lt;BR /&gt;&lt;BR /&gt;Below is the screenshot,&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi kiran P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 11:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77090#M345</guid>
      <dc:creator>Ravikiran44</dc:creator>
      <dc:date>2022-06-01T11:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77091#M346</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;Your initial question was just around how to convert the equivalent VBA Macro Code To VB .NET which I initially did and shared with you. When I ran the macro code shared by you as well, I was not able to get any result at my end.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31913.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32036i665D212AA545A09D/image-size/large?v=v2&amp;amp;px=999" role="button" title="31913.png" alt="31913.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31914.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/32034iDF0AAB6A8C7CBBE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="31914.png" alt="31914.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;It might be something is missing in this macro code which you have given. Can you tell me what exactly is your requirement so that I can give you a suitable solution as well to that. I guess you are trying to delimit the date value based on the '-' separator so that you get days, months and years separately. Is that correct understanding?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77091#M346</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-06-01T12:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Method arguments must be enclosed in parentheses</title>
      <link>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77092#M347</link>
      <description>Hi Devneet,&lt;BR /&gt;&lt;BR /&gt;Yes, Need to delimit the date as it contains space on the right side and not able to to convert that date into any format i.e MM/DD/YY,&lt;BR /&gt;without delimiting not able to format the particular cell .&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi kiran P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Method-arguments-must-be-enclosed-in-parentheses/m-p/77092#M347</guid>
      <dc:creator>Ravikiran44</dc:creator>
      <dc:date>2022-06-01T12:59:00Z</dc:date>
    </item>
  </channel>
</rss>

