Renaming sheets using list on another sheet

lembi2001

New Member
Joined
Mar 20, 2018
Messages
10
Thank you for your help with my previous query


My Workbook is taking shape quite well now but I have come across another stumbling block.


The workbook contains a Worksheet called Data and this sheet contains information about sheet names.


The list contains 3 columns (A:C) which detail the sheet name.


Column A is the identifier, a 4 digit code, Column B is a further identifier and Column C is the name of the sheet. What I am trying to do is rename the sheets in my workbook based on their original name.


Example


All the sheets are named as 4 digit codes when they are created
As part of another Macro I have, I want to read the sheet name, find that value in the Data sheet and rename the spreadsheet using the information in columns A B and C


Pseudo Code:


Get Sheet name
Find Sheet Name in Data Sheet
Rename Sheet using DataSheet Row A & " - " & Datasheet row B & " - " & DataSheet Row C


The result would look something like 3091 - U4 - Unit 4


Anyone able to firstly understand my gibberish and secondly help me out??
 
Re: Reanming sheets using list on another sheet

Thanks FormR

I'll go back to the drawing board but your code will help me with it no doubt
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,747
Messages
6,132,486
Members
449,729
Latest member
davelevnt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top