This might give you some ideas
VB Code:
Dim oExcel As Excel.Application Dim oBook As Excel.Workbook Dim oSheet As Excel.Worksheet Set oExcel = New Excel.Application Set oBook = oExcel.Workbooks.Open("C:\projects\testing.xls") oExcel.Visible = True For Each oSheet In oBook.Worksheets 'assumes cell A23 is a valid date 'The Sheet Name cannot contain the characters \ / ? * [ ] oSheet.Name = Format$(oSheet.Cells(23, 1), "dd-MMM-yyyy") Next oBook.Close True Set oBook = Nothing oExcel.Quit Set oExcel = Nothing




Reply With Quote