Hello again, I'm using WinXP and Excel 2007
I've read many pages of the 'rename sheets' search results and have a macro that will rename sheets based on a list. But it always starts with the 1st sheet in the workbook, regardless of where the sheet with the list is located in the workbook. How can I select the sheet that I want to start the renaming from?
sub change_names()
dim s as long, i as long
s=sheets.count
i=1
for each cell in selection
if i>s then exit sub
thisWS=cell.value
sheets(i).name=thisWS
i=i+1
next cell
end sub
thanks in advance for any help with this
I've read many pages of the 'rename sheets' search results and have a macro that will rename sheets based on a list. But it always starts with the 1st sheet in the workbook, regardless of where the sheet with the list is located in the workbook. How can I select the sheet that I want to start the renaming from?
sub change_names()
dim s as long, i as long
s=sheets.count
i=1
for each cell in selection
if i>s then exit sub
thisWS=cell.value
sheets(i).name=thisWS
i=i+1
next cell
end sub
thanks in advance for any help with this