<?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 Don't forget to set… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Macro-Question/m-p/88981#M39445</link>
    <description>Don't forget to set Application.ScreenUpdating to true at the end of the macro. I've found it best to include an error handler to re-enable it, in case the macro fails for some reason. Something like this:
Sub Macro()
&amp;nbsp; &amp;nbsp; On Error Goto MacroError
&amp;nbsp; &amp;nbsp; Application.ScreenUpdating = False
&amp;nbsp; &amp;nbsp; ' Do macro stuff....
&amp;nbsp;
MacroError:
&amp;nbsp; &amp;nbsp; Application.ScreenUpdating = True
End Sub
&amp;nbsp;
If it still appears to hang, try stepping through the macro with the Excel debugger to see where the hold up is.</description>
    <pubDate>Fri, 14 Dec 2018 18:56:00 GMT</pubDate>
    <dc:creator>NicholasZejdlik</dc:creator>
    <dc:date>2018-12-14T18:56:00Z</dc:date>
    <item>
      <title>Excel Macro Question</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Macro-Question/m-p/88980#M39444</link>
      <description>Hi,


I've been using an Excel macro to remove NA/NV rows from my worksheet:


'-----------------------------------------------------------
' ExcludeNV - Removes rows with #NA in column D
'-----------------------------------------------------------
Sub ExcludeNV()
Dim lRows As Long, lRow As Long
&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; Application.ScreenUpdating = False
&amp;nbsp; &amp;nbsp; Worksheets("Customer Details").Activate
&amp;nbsp; &amp;nbsp; lRows = ActiveSheet.UsedRange.Rows.Count

&amp;nbsp; &amp;nbsp; ' scans rows from the end upwards for proper indexing
&amp;nbsp; &amp;nbsp; For lRow = lRows To 2 Step -1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If IsError(Cells(lRow, 4).Value) Then _
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Cells(lRow, 4).Value = CVErr(xlErrNA) Then _
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rows(lRow).Delete Shift:=xlUp
&amp;nbsp; &amp;nbsp; Next lRow

End Sub
&amp;nbsp;

&amp;nbsp;

However, this is causing Excel to hang. Any ideas why?

&amp;nbsp;

Thanks,

Oliver</description>
      <pubDate>Fri, 14 Dec 2018 13:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Macro-Question/m-p/88980#M39444</guid>
      <dc:creator>OliverMohajeri</dc:creator>
      <dc:date>2018-12-14T13:22:00Z</dc:date>
    </item>
    <item>
      <title>Don't forget to set…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Macro-Question/m-p/88981#M39445</link>
      <description>Don't forget to set Application.ScreenUpdating to true at the end of the macro. I've found it best to include an error handler to re-enable it, in case the macro fails for some reason. Something like this:
Sub Macro()
&amp;nbsp; &amp;nbsp; On Error Goto MacroError
&amp;nbsp; &amp;nbsp; Application.ScreenUpdating = False
&amp;nbsp; &amp;nbsp; ' Do macro stuff....
&amp;nbsp;
MacroError:
&amp;nbsp; &amp;nbsp; Application.ScreenUpdating = True
End Sub
&amp;nbsp;
If it still appears to hang, try stepping through the macro with the Excel debugger to see where the hold up is.</description>
      <pubDate>Fri, 14 Dec 2018 18:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Macro-Question/m-p/88981#M39445</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2018-12-14T18:56:00Z</dc:date>
    </item>
  </channel>
</rss>

