+ Reply to Thread
Results 1 to 2 of 2

Macro to rename a sheet using a date.

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    São Paulo
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to rename a sheet using a date.

    Hi there. I'm using a VBA macro that copy some information from a sheet. Then it creates another sheet and rename it with a fixed name lets say "blabla". The thing is that if the workbook already has a sheet with this name the macro stoppes. So what is that this macro checks if a sheet named as "blabla" already exist and if it does then renames the new sheet as "blablatoday". If the use of date is not possible I would accept something like "blabla_1" "blabla_2" and so on.

    Thanks a lot.

    Augusto.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Macro to rename a sheet using a date.

    Here's a macro i generated created for this kind of sheetname renaming

    This macro checks if a workbook exists.
    Please Login or Register  to view this content.
    And here is the portion of a code that changes the sheetname.

    Please Login or Register  to view this content.
    Then you could do something like...

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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