<?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: VB code for Excel cell text to Horizontal Center Alignment in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54683#M1007</link>
    <description>&lt;SPAN class="coveo-highlight"&gt;Thank&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="coveo-highlight"&gt;you&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Michael for quick response. It worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pasupuleti Mounika&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;Genpact India LLP&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 04 Jan 2023 13:53:00 GMT</pubDate>
    <dc:creator>Mounika__Pasupuleti</dc:creator>
    <dc:date>2023-01-04T13:53:00Z</dc:date>
    <item>
      <title>VB code for Excel cell text to Horizontal Center Alignment</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54681#M1005</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I need VB code for Excel cell text to Horizontal Center Alignment.&lt;BR /&gt;&lt;BR /&gt;Below is the code i am currently using which is not a complete one as some content and dependencies seems to be missing.&lt;BR /&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Dim wb, excel, Range As Object&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Try&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;wb = GetWorkbook(Handle, Nothing).ActiveSheet&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;excel = wb.Application&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Range = excel.Selection&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Range.HorizontalAlignment = xlCenter&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Finally&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;wb = Nothing&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;excel = Nothing&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;Range = Nothing&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;&lt;STRONG&gt;End Try&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Kindly need your help in this.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pasupuleti Mounika&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;Genpact India LLP&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jan 2023 12:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54681#M1005</guid>
      <dc:creator>Mounika__Pasupuleti</dc:creator>
      <dc:date>2023-01-03T12:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: VB code for Excel cell text to Horizontal Center Alignment</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54682#M1006</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I think you are almost there with your code but since this is vb you will likely need to change the xlcenter to enumeration instead. The below link will give you a list of alignments which should hopefully help you out with this.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/office/vba/api/excel.xlhalign" target="test_blank"&gt;https://learn.microsoft.com/en-us/office/vba/api/excel.xlhalign&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jan 2023 21:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54682#M1006</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2023-01-03T21:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: VB code for Excel cell text to Horizontal Center Alignment</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54683#M1007</link>
      <description>&lt;SPAN class="coveo-highlight"&gt;Thank&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="coveo-highlight"&gt;you&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Michael for quick response. It worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pasupuleti Mounika&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;Genpact India LLP&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/VB-code-for-Excel-cell-text-to-Horizontal-Center-Alignment/m-p/54683#M1007</guid>
      <dc:creator>Mounika__Pasupuleti</dc:creator>
      <dc:date>2023-01-04T13:53:00Z</dc:date>
    </item>
  </channel>
</rss>

