|
-
Sep 9th, 2005, 02:22 PM
#3
Re: Trouble renaming excel worksheet.........
If you only need to rename the sheet and not perform any further actions, then why use an object variable at all?
replacing
NewSht = ActiveWorkbook.Worksheets("Log (2)")
NewSht.Name = NewShtName
with
ActiveWorkbook.Worksheets("Log (2)").Name = NewShtName
should do it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|