Rename all existing worksheet tabs
I would like to rename just selected worksheets. Could a modification of this
code be possible?
"Bob Phillips" wrote:
Const sBase as string = "USA"
Dim i as long
Dim sh As Object
For Each sh In Activeworkbook.Sheets
i = i + 1
sh.name = sBase & i
Next sh
--
HTH
RP
(remove nothere from the email address if mailing direct)
"MikeM" <michael[dot]mittelmanl[at]db[dot]com wrote in message
...
I would like to take an existing workbook and rename all the worksheet
tabs
at one time. For example, I might have ten worksheets with various names
and
I'd like them all to be named USA1, USA2, USA3 and so on.
Can this be easily done with some VBA code? (I've seen some similar
questions, but none exactly like this one.)
Thanks.
|