+ Reply to Thread
Results 1 to 3 of 3

Create New Excel Sheet plus copy data from different sheet

  1. #1
    Registered User
    Join Date
    01-27-2023
    Location
    UK
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Create New Excel Sheet plus copy data from different sheet

    Hi,

    I have an excel workbook with one sheet as a template and below VBA macro to create a new sheet. Id like to add to this macro that whenever new sheet is created he also paste whatever is in "template" sheet into newly created sheet. Both template sheet and new sheet are in the same workbook.



    Option Explicit

    Sub AddSheets_TodayTest()

    Dim szToday As String

    szToday = Format(Date, "dd.mm.yyyy")

    On Error GoTo MakeSheet

    Sheets(szToday).Activate

    Exit Sub


    MakeSheet:
    Sheets.Add , Worksheets(Worksheets.Count)
    ActiveSheet.Name = szToday

    End Sub
    Last edited by czerwonywilk; 01-30-2023 at 02:41 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Create New Excel Sheet plus copy data from different sheet

    try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-27-2023
    Location
    UK
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: Create New Excel Sheet plus copy data from different sheet

    Hi,

    Thank you for help, it is working perfectly.

+ 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 one row to another sheet then create pdf and excel Value only for this sheet
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2021, 06:40 AM
  2. excel macro - how to create copy one sheet to another sheet alternate row
    By jshgaonkar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2013, 09:12 AM
  3. Create VLOOKUP or INDEX/MATCH to copy values from Sheet 2 to Sheet 1
    By leog1969 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-03-2013, 05:58 PM
  4. Copy Sheet / Create & Name New Sheet / Insert Before a Sheet / Paste Data
    By thinkspac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 02:27 PM
  5. Macro to Look for Sheet, create if none, sort items from master & copy to new sheet.
    By ali.whitaker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-25-2012, 12:58 PM
  6. Filter, copy filtered data into another sheet, create a file of that sheet..
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-17-2012, 02:26 PM
  7. Copy Sheet & Create New Monthly Sheet From Present Sheet
    By unley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2010, 12:00 PM

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