changing tab name on the bottom of an Excel sheet by macro

  • Thread starter Thread starter cinders
  • Start date Start date
C

cinders

i have a need to change the tab name on the bottom of an excel sheet by
macro. any ideas
 
Hi

Sub NameSheet(myoldName as String, myNewName as String)
Activeworkbook.Worksheets(myOldString).Name = myNewString
end sub

In the calling sub you would use, for example

NameSheet "Sheet1", "DataSheet"

to change Sheet1 to DataSheet.
Be careful with illegal characters in the sheet name like /, \, ?, :,
[, ] and * or they will generate an error.

regards
Paul
 
This will change the name of the first sheet to the name "hello"

Sub Changename()
Sheets(1).Name = "hello"
End Sub

Best regards
Petter

cinders skrev:
 
Sounds good to me, perhaps you can help with something else. I am now
trying to remove all the toolbars and side bars on the worksheet. I
know about the full screen option on the"view" pull down but can the
screen be made any less cluttered than that ??

Peter

(i wish i had a cool but naughty nick name like fingerjob, mines
cinders cos I have to be home by 12.oo otherwise my missus locks the
door)
 
Hi
Experience has shown that most users hate having their menu bars taken
away, so you might want to rethink this. It is a bit of a pain too, as
you have to put them back, and you have to take account of the machine
crashing for example (what puts them back in that case?).
If you are determined, Googling this group with "removing menu bars"
would probably do it
regards
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top