+ Reply to Thread
Results 1 to 6 of 6

Rename active sheet with current file name

  1. #1

    Rename active sheet with current file name

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

    Thxs


  2. #2
    Ardus Petus
    Guest

    Re: Rename active sheet with current file name

    Sub tester()
    ActiveSheet.name=ActiveWorkbook.name
    end sub

    HTH
    --
    AP

    <[email protected]> a écrit dans le message de news:
    [email protected]...
    > Does anybody has a macro which would rename my active sheet with
    > current file name?
    >
    > Thxs
    >




  3. #3

    Re: Rename active sheet with current file name

    thxs!! - how can i remove the .xls from the name


    Ardus Petus wrote:
    > Sub tester()
    > ActiveSheet.name=3DActiveWorkbook.name
    > end sub
    >
    > HTH
    > --
    > AP
    >
    > <[email protected]> a =E9crit dans le message de news:
    > [email protected]...
    > > Does anybody has a macro which would rename my active sheet with
    > > current file name?
    > >
    > > Thxs
    > >



  4. #4
    Ardus Petus
    Guest

    Re: Rename active sheet with current file name

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

    HTH
    --
    AP

    <[email protected]> a écrit dans le message de news:
    [email protected]...
    thxs!! - how can i remove the .xls from the name


    Ardus Petus wrote:
    > Sub tester()
    > ActiveSheet.name=ActiveWorkbook.name
    > end sub
    >
    > HTH
    > --
    > AP
    >
    > <[email protected]> a écrit dans le message de news:
    > [email protected]...
    > > Does anybody has a macro which would rename my active sheet with
    > > current file name?
    > >
    > > Thxs
    > >




  5. #5
    Duncan
    Guest

    Re: Rename active sheet with current file name

    try

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

    Duncan

    [email protected] wrote:

    > thxs!! - how can i remove the .xls from the name
    >
    >
    > Ardus Petus wrote:
    > > Sub tester()
    > > ActiveSheet.name=3DActiveWorkbook.name
    > > end sub
    > >
    > > HTH
    > > --
    > > AP
    > >
    > > <[email protected]> a =E9crit dans le message de news:
    > > [email protected]...
    > > > Does anybody has a macro which would rename my active sheet with
    > > > current file name?
    > > >
    > > > Thxs
    > > >



  6. #6

    Re: Rename active sheet with current file name

    thxs - work great !!
    Ardus Petus wrote:
    > ActiveSheet.name=3DLeft(ActiveWorkbook.name, Len(Activeworkbook.name)-4)
    >
    > HTH
    > --
    > AP
    >
    > <[email protected]> a =E9crit dans le message de news:
    > [email protected]...
    > thxs!! - how can i remove the .xls from the name
    >
    >
    > Ardus Petus wrote:
    > > Sub tester()
    > > ActiveSheet.name=3DActiveWorkbook.name
    > > end sub
    > >
    > > HTH
    > > --
    > > AP
    > >
    > > <[email protected]> a =E9crit dans le message de news:
    > > [email protected]...
    > > > Does anybody has a macro which would rename my active sheet with
    > > > current file name?
    > > >
    > > > Thxs
    > > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1