Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Mass rename of worksheets/Workbooks

here's a framework you can use...copy to a standard
module & change where appropriate

Sub AllThingsArePossible()

Dim wb As Workbook
Dim fn As String

ChDrive "H"
ChDir "H:\excel_demos"

' initialise
fn = Dir("*.xls")

Do While fn < ""

Set wb = Workbooks.Open(fn)

wb.Worksheets(1).Name = "newname"

wb.Save
wb.Close False

fn = Dir()

Loop



End Sub
-----Original Message-----
Hello Newsgroup Users and Gurus.


You're kind assistance please.

I'll be surprised if this can be achieved.
I have over 400 .xls file. Each workbook has one
worksheet.

I have to rename each workbook & each respective
worksheet. Is there anyway of renaming each worksheet on
mass or the easiest way of a completing this task.

All workbooks are in the same folder. I'm using Excel 98
on a WIN-NT machine.

Any help at all would be appreciated.

Kind regards
Paul

.

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
HOW DO I COPY AND RENAME A WORKBOOK LINKED TO OTHER WORKBOOKS rlh3 Excel Discussion (Misc queries) 1 January 2nd 08 04:49 PM
Mass add of a sheet to multiple workbooks ddpderek Excel Discussion (Misc queries) 2 May 31st 07 03:35 PM
Mass Change Across Many WorkBOOKS SCSC Excel Discussion (Misc queries) 2 March 8th 05 11:43 PM
Mass rename of worksheets/Workbooks Aaron Queenan Excel Programming 0 September 3rd 03 04:49 PM
Macro to perform mass header change on 100 worksheets Diana[_4_] Excel Programming 2 August 6th 03 11:57 PM


All times are GMT +1. The time now is 11:34 AM.

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"