+ Reply to Thread
Results 1 to 4 of 4

Copy worksheet contents to new worksheet

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    brooklyn
    MS-Off Ver
    Excel 2003
    Posts
    11

    Exclamation Copy worksheet contents to new worksheet

    I am trying to copy a sheet named template which has all the column headings but no data, to a new sheet on daily basis. Each day it should copy the the template to a new tab and rename the tab to the current date, then hide the previous days (tabs). I got the code below to rename the tabs however when it copies the template it doesn't copy the template with the columns it just highlight the cell ranges on the new worksheet.

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 09-01-2013 at 02:11 PM. Reason: Fixed code tags...

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy worksheet contents to new worksheet

    One approach:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 09-01-2013 at 03:26 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy worksheet contents to new worksheet

    hi shotta, if to leave everything as is, amend this line to:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-29-2013
    Location
    brooklyn
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Copy worksheet contents to new worksheet

    Thanks alot.I have a sheet name Total that's suppose to add up the values for each spreadsheet. Once i open the excel file it hides the 2010831 file, that was the spreasheet which the total are calculated from, however, each day a new sheet is created i would like to calculate those totals too. The sheets copied from the template should all be in the same position once they are created. I would like to calculate the totals for all 10 columns the below code only calculate one column (SURGICAL DENTURES) where do i place the Else if statement to add the others. You can view the attached to see what i am doing Please advise

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-01-2013 at 03:25 PM. Reason: fixed code tags

+ 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. Need to copy all the contents of a worksheet into a new workbook
    By emryjy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2012, 04:49 PM
  2. Search for a worksheet, copy and paste the contents to another worksheet
    By brindharc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 06:18 AM
  3. Drop Down List to Copy Entire Contents of Worksheet into Master Worksheet
    By mrmartin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-14-2011, 10:54 PM
  4. Macro to Copy contents into new worksheet
    By lewis94 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 05:40 PM
  5. Copy ListBox contents to a Worksheet
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2007, 10: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