<?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 Deleting Blank Pages in Word via Macro in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69089#M21694</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;While hoping you all are okay, I want to make a question if someone can help me how to delete the blank pages in Word via Macro .&lt;/P&gt;
&lt;P&gt;Thank You,&lt;/P&gt;
&lt;P&gt;Erjola&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 31 Jan 2022 09:21:00 GMT</pubDate>
    <dc:creator>ErjolaMema</dc:creator>
    <dc:date>2022-01-31T09:21:00Z</dc:date>
    <item>
      <title>Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69089#M21694</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;While hoping you all are okay, I want to make a question if someone can help me how to delete the blank pages in Word via Macro .&lt;/P&gt;
&lt;P&gt;Thank You,&lt;/P&gt;
&lt;P&gt;Erjola&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 09:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69089#M21694</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-01-31T09:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69090#M21695</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;Use this link: &lt;A href="https://social.msdn.microsoft.com/Forums/en-US/9837256a-be38-4516-a08d-ab48e9c076f2/macro-to-remove-all-the-blank-pages-in-the-document?forum=worddev" target="_blank" rel="noopener"&gt;https://social.msdn.microsoft.com/Forums/en-US/9837256a-be38-4516-a08d-ab48e9c076f2/macro-to-remove-all-the-blank-pages-in-the-document?forum=worddev&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the code that you need to use:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="prettyprint lang-vb prettyprinted"&gt;&lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Demo&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;With&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; ActiveDocument&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Content&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Find
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;ClearFormatting
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Replacement&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;ClearFormatting
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Text &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"^12[^12^13 ]{1,}"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Replacement&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Text &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"^12"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Forward &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;True&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Wrap &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; wdFindContinue
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Format &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;False&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;MatchWildcards &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;True&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Execute Replace&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;wdReplaceAll
    &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;End&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;With&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;End&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Hope this helps you&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Programmer&lt;BR /&gt;Altamira AM&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 11:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69090#M21695</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-01-31T11:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69091#M21696</link>
      <description>&lt;P&gt;Hi Pablo and thank you for your answer but I dont't know why it didn't work&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69091#M21696</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-01-31T13:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69092#M21697</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try with this other script. It only deletes paragraphs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="prettyprint lang-vb prettyprinted"&gt;&lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; Demo&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    Dim par As Paragraph&lt;BR /&gt;       For Each par In ActiveDocument.Content.Paragraphs&lt;BR /&gt;          If Len(par.Range.Text) &amp;lt;= 1 Then&lt;BR /&gt;             par.Range.Delete&lt;BR /&gt;          End If&lt;BR /&gt;       Next par&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;End&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;BR /&gt;I try with empty pages at the end of the document and in the middle and works correctly.&lt;BR /&gt;&lt;BR /&gt;Hope with this is done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Programmer&lt;BR /&gt;Altamira AM&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 14:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69092#M21697</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-01-31T14:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69093#M21698</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How are you trying the macro? I use a common form with a button to test it.&lt;BR /&gt;&lt;BR /&gt;Did you save the document as .docm?&lt;BR /&gt;&lt;BR /&gt;I try it in a document with footer and header and works.&lt;BR /&gt;&lt;BR /&gt;Could you share a copy of the document just to test it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Programmer&lt;BR /&gt;Altamira AM&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69093#M21698</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-01-31T15:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69094#M21699</link>
      <description>&lt;DIV class="uconBody"&gt;
&lt;DIV dir="ltr"&gt;The word doc file has the format .docx&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69094#M21699</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-01-31T15:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69095#M21700</link>
      <description>This is the Word Doc&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69095#M21700</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-01-31T16:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69096#M21701</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Let's try with this! I make another Word for you. (Unzip the attached file)&lt;BR /&gt;&lt;BR /&gt;The main problem is that you don't have the headers and footer with the Word function for this. I put in the file a header and footer, just change it.&lt;BR /&gt;&lt;BR /&gt;If you open the list of Macros ([ALT] + F8) you may see "RemoveBlankPages" macro, execute it when you want to remove blank pages.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Programmer&lt;BR /&gt;Altamira AM&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69096#M21701</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-01-31T16:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Deleting Blank Pages in Word via Macro</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69097#M21702</link>
      <description>&lt;P&gt;the point is that&amp;nbsp; "the header and footer" are putted also with macro code. The A3 format is putted also with macro .&lt;/P&gt;
&lt;P&gt;This Is the reason I could't find a code for deleting blank pages.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Deleting-Blank-Pages-in-Word-via-Macro/m-p/69097#M21702</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-01-31T16:51:00Z</dc:date>
    </item>
  </channel>
</rss>

