Rename active sheet with current file name

  • Thread starter Thread starter transferxxx
  • Start date Start date
T

transferxxx

Does anybody has a macro which would rename my active sheet with
current file name?

Thxs
 
ActiveSheet.name=Left(ActiveWorkbook.name, Len(Activeworkbook.name)-4)

HTH
 
try

ActiveSheet.Name = Left(ActiveWorkbook.Name, Len(ActiveWorkbook.Name) -
4)

Duncan
 
thxs - work great !!
Ardus said:
ActiveSheet.name=Left(ActiveWorkbook.name, Len(Activeworkbook.name)-4)

HTH
--
AP

<[email protected]> a écrit dans le message de (e-mail address removed)...
thxs!! - how can i remove the .xls from the name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top