View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cathy W[_2_] Cathy W[_2_] is offline
external usenet poster
 
Posts: 30
Default Rename a worksheet after copy...

Hello. I am using the following code to copy a worksheet named DOS5 into a
workbook that already has a sheet called DOS5. When it gets copied I would
like to rename it to the next sequential sheet number (ie: DOS6). Can
someone help?

bk.Sheets("DOS5").Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Cou nt)

Thanks,
Cathy