LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Solution Required

Place the following in a general Visual Basic Module. This should give you
an idea of how to do what you want. The subroutine renames both worksheets
and chart sheets. You can modify to suit your needs.

HTH,

Eric

Sub Worksheet_Name_Change()
Dim ws As Worksheet
Dim ch As Chart
'
For Each ws In ActiveWorkbook.Worksheets
ws.Name = ws.Name & " Jan"
Next ws
'
For Each ch In ActiveWorkbook.Charts
ch.Name = ch.Name & " Jan"
Next ch
'
End Sub



"Akash" wrote:

Hi,

I have a worksheet with the Sheet named as:

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6

I want a code through which i can change the Work Sheet Name as

Item 1 Jan
Item 2 Jan
Item 3 Jan
Item 4 Jan
Item 5 Jan
Item 6 Jan

Require your guidance to over come this problem which i have so many
sheets in one file and i had to rename all sheets every month.

Awaiting for your response.

Regards

Akash Maheshwari
.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution required Hassan Excel Programming 1 June 1st 09 12:51 PM
vba solution Nigel[_2_] Excel Programming 4 December 31st 08 10:56 AM
VBA solution required? Michael Excel Programming 2 January 24th 08 05:37 PM
odd vlookup solution required - can you rise to the challenge?! Danny Bhoy Excel Programming 2 January 16th 08 09:21 AM
Solution Required to prevent #Ref! when rows deleted Andibevan Excel Worksheet Functions 3 September 6th 05 01:39 PM


All times are GMT +1. The time now is 01:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"