PC Review


Reply
Thread Tools Rate Thread

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

 
 
cinders
Guest
Posts: n/a
 
      14th Nov 2006
i have a need to change the tab name on the bottom of an excel sheet by
macro. any ideas

 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      14th Nov 2006
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

cinders wrote:

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


 
Reply With Quote
 
=?Utf-8?B?RmluZ2Vyam9i?=
Guest
Posts: n/a
 
      14th Nov 2006

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:

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

 
Reply With Quote
 
cinders
Guest
Posts: n/a
 
      14th Nov 2006
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)




Fingerjob wrote:

> 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:
>
> > i have a need to change the tab name on the bottom of an excel sheet by
> > macro. any ideas
> >
> >


 
Reply With Quote
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      15th Nov 2006
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

cinders wrote:

> 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)
>
>
>
>
> Fingerjob wrote:
>
> > 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:
> >
> > > i have a need to change the tab name on the bottom of an excel sheet by
> > > macro. any ideas
> > >
> > >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd love sheet tabs like at the bottom of Excel =?Utf-8?B?bWFydGluIGdpZmZvcmQ=?= Microsoft Word Document Management 9 26th Nov 2007 03:55 PM
How do I remove a date at the bottom of an excel sheet? =?Utf-8?B?cnJvZ2Vycw==?= Microsoft Excel Worksheet Functions 1 20th Jul 2005 10:37 PM
How do I repeat rows on the bottom of each sheet in excel? =?Utf-8?B?QXNtYQ==?= Microsoft Excel Worksheet Functions 1 15th Mar 2005 09:37 PM
NEED TO REPEAT ROWS AT THE BOTTOM OF EXCEL SPREAD SHEET AQ Mahomed Microsoft Excel Programming 5 7th Jun 2004 02:13 PM
Macro - copy entire row and paste at bottom of another sheet miker1999 Microsoft Excel Programming 4 31st Jan 2004 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 AM.