Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to find/replace all of the names of files in EXCEL workbook.

If you have a workbook in EXCEL with one sheet for each day of the month, how
can you change all of the names of the sheets at one time for the new month?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default How to find/replace all of the names of files in EXCEL workbook.

Example of your naming convention?

--
Don Guillett
SalesAid Software

"Peter Multach" <Peter
wrote in message
...
If you have a workbook in EXCEL with one sheet for each day of the month,
how
can you change all of the names of the sheets at one time for the new
month?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default How to find/replace all of the names of files in EXCEL workbook.

I have assumend sheetnames are month(day) ie March1, March 2 etc if this is
incorrect simply swap the x around.

Sub renameall()
x = 1
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Name = MonthName(Month(Now())) & x
x = x + 1
Next ws
End Sub



"Peter Multach" wrote:

If you have a workbook in EXCEL with one sheet for each day of the month, how
can you change all of the names of the sheets at one time for the new month?

Reply
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
Find/Replace Across Entire Workbook in Excel 2000 Tiffany Excel Discussion (Misc queries) 3 February 5th 07 10:31 PM
find and replace within workbook macro CVL Excel Discussion (Misc queries) 1 February 9th 06 10:32 PM
how do I find names in a workbook full of names aj Excel Discussion (Misc queries) 1 January 19th 06 09:01 PM
find and replace, within workbook Matt Carter Excel Discussion (Misc queries) 1 November 22nd 05 12:55 AM
Find / Replace sheets vs workbook in VB Bony Pony Excel Worksheet Functions 0 December 8th 04 02:21 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"