+ Reply to Thread
Results 1 to 4 of 4

Trouble with Code to change sheet name

  1. #1
    JOUIOUI
    Guest

    Trouble with Code to change sheet name

    When I open my excel file each day, the sheet is titled with the current date
    in this format 070606. I want to change the active sheet name, reguardless
    of what it is to "All Records". This code is not working, any suggestions

    Sub ChangeFileName()

    With ActiveSheet.Select
    SheetName = "All REcords"

    End Sub

  2. #2
    Don Guillett
    Guest

    Re: Trouble with Code to change sheet name

    activesheet.name="All Records"

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "JOUIOUI" <[email protected]> wrote in message
    news:[email protected]...
    > When I open my excel file each day, the sheet is titled with the current
    > date
    > in this format 070606. I want to change the active sheet name,
    > reguardless
    > of what it is to "All Records". This code is not working, any suggestions
    >
    > Sub ChangeFileName()
    >
    > With ActiveSheet.Select
    > SheetName = "All REcords"
    >
    > End Sub




  3. #3
    Charlie
    Guest

    RE: Trouble with Code to change sheet name

    ActiveSheet.Name = "All Records"

    "JOUIOUI" wrote:

    > When I open my excel file each day, the sheet is titled with the current date
    > in this format 070606. I want to change the active sheet name, reguardless
    > of what it is to "All Records". This code is not working, any suggestions
    >
    > Sub ChangeFileName()
    >
    > With ActiveSheet.Select
    > SheetName = "All REcords"
    >
    > End Sub


  4. #4
    Tom Ogilvy
    Guest

    RE: Trouble with Code to change sheet name

    Sub ChangeFileName()


    ActiveSheet.Name = "All REcords"

    End Sub

    --
    Regards,
    Tom Ogilvy


    "JOUIOUI" wrote:

    > When I open my excel file each day, the sheet is titled with the current date
    > in this format 070606. I want to change the active sheet name, reguardless
    > of what it is to "All Records". This code is not working, any suggestions
    >
    > Sub ChangeFileName()
    >
    > With ActiveSheet.Select
    > SheetName = "All REcords"
    >
    > End Sub


+ 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