+ Reply to Thread
Results 1 to 5 of 5

Macro to copy current sheet to new sheet and rename with that days date in DDMMYY format

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    25

    Macro to copy current sheet to new sheet and rename with that days date in DDMMYY format

    We have a formatted sheet which is missing data values that is copied each day and renamed and then that days data is copied into it. I am trying to build a macro (partially there) which:-

    1] takes blank (data free) sheet and renames to the current date
    2] runs the first data grab where it pulls data values from live feed sheet (connected to SQL DB) and copies values in

    It will then have repeats of step 2] which runs again at other times of the day started by a macro button (already achieved - thanks 'record macro')

    I am just looking at how to achieve step 1]
    ???

    Thanks 5D

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Macro to copy current sheet to new sheet and rename with that days date in DDMMYY form

    May I suggest to use record macro for step one?
    Initialize record
    copy an existing sheet (so the name its known)
    rename it with today() date.
    stop recording
    look at it

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Macro to copy current sheet to new sheet and rename with that days date in DDMMYY form

    Hi rcm

    Thanks for the reply but if I am recording a macro which forms step 1 then I am manually renaming the copied sheet. I am looking for the macro to rename the sheet on a daily basis therefore if it records "me" manually entering the date then it will not automate that for me in the future.

    Regards

    5D

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Macro to copy current sheet to new sheet and rename with that days date in DDMMYY form

    The second part is the modified macro in which the last statement renames the new sheet as the date.

  5. #5
    Registered User
    Join Date
    08-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Macro to copy current sheet to new sheet and rename with that days date in DDMMYY form

    Have run into problem that when using macro record and going through the 'copy sheet' process it drops all the macros in the blank template and also renames the buttons. In essence it copies the buttons but with none of the macros assigned

    (also noted that this is in the wrong forum group so have asked admin to move it)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. copy master sheet and rename sheet with date format
    By peter renton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 02:08 PM
  2. Macro open files and copy sheet and rename sheet
    By matrix_xrs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 04:33 AM
  3. copy template,past new sheet and rename to given date for 30 days
    By fasalazar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2012, 05:19 PM
  4. Replies: 2
    Last Post: 03-14-2012, 03:26 AM
  5. copy sheet and rename based on date
    By itsunclebill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-01-2009, 07:50 PM

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