<?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: Rename Excel Worksheet in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116716#M52253</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624"&gt;@joanne.spratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I agree with&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27547"&gt;@John__Carter&lt;/a&gt;&amp;nbsp;it would be best to create your on vbo to house any new actions for excel but i need to point out that this will involve significantly more steps to implement so this would depend on your level of knowledge and confidence in creating your own vbo. You will need to create the vbo and then copy the global code from the existing excel vbo to your new one and add it to the initialise page on the new vbo, you will also need to copy over the create instance page from the original (global code will need this) and at minimum the attach page as well which will also need the open instance page, this will allow you to attach to the instance from the original vbo. If you intend to do all the actions for renaming on this new vbo you will need the open workbook action, save and close instance actions as well before you also create the Rename worksheet action.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 11:18:35 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2024-11-01T11:18:35Z</dc:date>
    <item>
      <title>Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116690#M52246</link>
      <description>&lt;P&gt;Looking for some guidance on how to rename a excel worksheet in BP, not the whole workbook, but a single worksheet within the workbook.&amp;nbsp; TIA&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 23:46:06 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116690#M52246</guid>
      <dc:creator>joanne.spratt</dc:creator>
      <dc:date>2024-10-31T23:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116696#M52248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624"&gt;@joanne.spratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose i have this excel file and i want to delete Sheet2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamad_747_0-1730444181512.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39751i17879A1B3B5D7E58/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Mohamad_747_0-1730444181512.png" alt="Mohamad_747_0-1730444181512.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Drag and drop an action and go to MS Excel VBO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Create Instance&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Open Workbook&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Activate Worksheet&lt;/P&gt;&lt;P&gt;- Delete Worksheet&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Save&lt;/P&gt;&lt;P&gt;-Close&lt;/P&gt;&lt;P&gt;- Close Instance&lt;/P&gt;&lt;P&gt;Your Flow should look like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamad_747_1-1730444230355.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39752iEF2D271BD4B92AD2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Mohamad_747_1-1730444230355.png" alt="Mohamad_747_1-1730444230355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try it and let me know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 06:58:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116696#M52248</guid>
      <dc:creator>Mohamad_Dakkouri</dc:creator>
      <dc:date>2024-11-01T06:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116708#M52251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624"&gt;@joanne.spratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the latest version of the excel VBO? im not sure if there is an action in there for a rename of the worksheet but if you have the latest one then have a look in there for any action for renaming. If it doesnt exist then you can create a new action with a new code stage, in the excel vbo create a new action and in the action add a code stage, add 3 inputs called handle, source worksheet and source workbook. There should be 2 outputs as well, success and message then in the code tab add the following:&lt;/P&gt;&lt;DIV&gt;Dim wb, ws As Object&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Try&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;wb = GetWorkbook(Handle, Source_Workbook)&lt;/DIV&gt;&lt;DIV&gt;ws = wb.Worksheets(Source_Worksheet)&lt;/DIV&gt;&lt;DIV&gt;ws.select()&lt;/DIV&gt;&lt;DIV&gt;ws.Name = New_worksheet_name&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Success = True&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Catch e As Exception&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Success = False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Message = e.Message&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Finally&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;wb = Nothing&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ws = Nothing&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;End Try&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Below are some screen grabs so you can see whats needed, not the checkinstanceandworkbook stage are optional its not required.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;input on the start stage&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaeloneil_0-1730455383748.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39754i9B591FD4C8366458/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michaeloneil_0-1730455383748.png" alt="michaeloneil_0-1730455383748.png" /&gt;&lt;/span&gt;&lt;P&gt;Action flow&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaeloneil_1-1730455413838.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39755i7F269ABA4BB0A72B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michaeloneil_1-1730455413838.png" alt="michaeloneil_1-1730455413838.png" /&gt;&lt;/span&gt;&lt;P&gt;Code stage inputs&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaeloneil_2-1730455433271.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39756iC1E415931FB5E8DB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michaeloneil_2-1730455433271.png" alt="michaeloneil_2-1730455433271.png" /&gt;&lt;/span&gt;&lt;P&gt;Code stage outputs&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaeloneil_3-1730455446180.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39757iC3B51C2B2D77AD1E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michaeloneil_3-1730455446180.png" alt="michaeloneil_3-1730455446180.png" /&gt;&lt;/span&gt;&lt;P&gt;End stage outputs&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaeloneil_4-1730455459193.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39758iA838B42B555A0FB2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michaeloneil_4-1730455459193.png" alt="michaeloneil_4-1730455459193.png" /&gt;&lt;/span&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Nov 2024 10:04:30 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116708#M52251</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2024-11-01T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116712#M52252</link>
      <description>&lt;P&gt;Hi Joanne - it's best not to edit the original Excel VBO, so make a new VBO for your bespoke actions. Add a code stage like this, with workbook name, worksheet name and new worksheet name as inputs. The logic below makes the workbook and worksheet names optional, where the active workbook or worksheet is used if no name is specified. The code also assumes the workbook has already been opened (probably by the default Excel VBO).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John__Carter_0-1730456220834.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39759i4C307FFFB6BB64B5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="John__Carter_0-1730456220834.png" alt="John__Carter_0-1730456220834.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;With Microsoft.VisualBasic.GetObject(, "Excel.Application")

	Dim wb, ws As Object
	If Workbook = "" Then
		wb = .ActiveWorkbook
	Else
		wb = .WorkBooks(Workbook)
	End If
	If Worksheet = "" Then
		ws = wb.ActiveSheet
	Else
		ws = wb.Worksheets(Worksheet)
	End If	
	ws.Name = NewWorksheet

End With&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Nov 2024 10:26:16 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116712#M52252</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2024-11-01T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116716#M52253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624"&gt;@joanne.spratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I agree with&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27547"&gt;@John__Carter&lt;/a&gt;&amp;nbsp;it would be best to create your on vbo to house any new actions for excel but i need to point out that this will involve significantly more steps to implement so this would depend on your level of knowledge and confidence in creating your own vbo. You will need to create the vbo and then copy the global code from the existing excel vbo to your new one and add it to the initialise page on the new vbo, you will also need to copy over the create instance page from the original (global code will need this) and at minimum the attach page as well which will also need the open instance page, this will allow you to attach to the instance from the original vbo. If you intend to do all the actions for renaming on this new vbo you will need the open workbook action, save and close instance actions as well before you also create the Rename worksheet action.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 11:18:35 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116716#M52253</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2024-11-01T11:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116718#M52254</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624"&gt;@joanne.spratt&lt;/a&gt;&amp;nbsp;Apologize i read delete instead of rename..&lt;/P&gt;&lt;P&gt;Apologize again&lt;/P&gt;&lt;P&gt;Follow&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 11:06:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116718#M52254</guid>
      <dc:creator>Mohamad_Dakkouri</dc:creator>
      <dc:date>2024-11-01T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116721#M52256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2654"&gt;@michaeloneil&lt;/a&gt;&amp;nbsp;the action I posted should work 'as is' and will not need anything from the original Excel VBO. It's a 'lightweight' way of adding new Excel functionality without having to mimic the complexity of the default VBO.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 12:08:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116721#M52256</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2024-11-01T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116722#M52257</link>
      <description>&lt;P&gt;ah sorry&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27547"&gt;@John__Carter&lt;/a&gt;&amp;nbsp;i didnt see the GetObject step in there&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 12:24:59 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116722#M52257</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2024-11-01T12:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Excel Worksheet</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116723#M52258</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;A href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61624" target="_blank"&gt;@joanne.spratt,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To get back to your original question, there is no specific action to rename a worksheet.&amp;nbsp; Without getting into the custom object options, you have a couple of options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You could create a macro run macro via the MS Excel VBO.&amp;nbsp; There appear to be a couple different ways to do this.&lt;/LI&gt;&lt;LI&gt;You can create a new Worksheet, named as you like, copy the data from your original Worksheet and then Delete that Worksheet&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Again, all done within the current 'vanilla' version of the MS Excel VBO.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 16:29:18 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Rename-Excel-Worksheet/m-p/116723#M52258</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2024-11-03T16:29:18Z</dc:date>
    </item>
  </channel>
</rss>

