+ Reply to Thread
Results 1 to 7 of 7

Need to modify a buttons script to create new worksheet

  1. #1
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    162

    Need to modify a buttons script to create new worksheet

    Hi All,

    I am hoping to find a way to create a new worksheet using the text "Kansas- OJR" followed by the current date mmddyyyy as the filename. I currently have a button on the tab "KS OJR" that is called Copy Sheet. My hope is to use that button to Copy the sheet and then create a new sheet using the naming criteria above and paste the data that was copied into the new sheet.

    Thank you in advance for any help!

    Adam
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Need to modify a buttons script to create new worksheet

    Try

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    162

    Re: Need to modify a buttons script to create new worksheet

    Is there a way to have this script create a new spreadsheet using the name criteria and not just add a new tab?

    Thank you,
    Adam

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Need to modify a buttons script to create new worksheet

    You mean a new workbook? And a workbook per day?

  5. #5
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    162

    Re: Need to modify a buttons script to create new worksheet

    Sorry, I was hoping for a new workbook per day. Or better phrased, a new workbook when the button is clicked. That should only be once a day.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Need to modify a buttons script to create new worksheet

    250 + books in a year ??? Let's hope you never need to do any processing which requires looking at several weeks' worth of books.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Need to modify a buttons script to create new worksheet

    Please Login or Register  to view this content.
    Code is in sheet "KS OJR". there is no check to see if workbook already exists so running more than once a day will overwrite the existing one
    Attached Files Attached Files

+ 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. [SOLVED] Please help modify a Script by Google
    By vill in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 07-17-2021, 05:50 AM
  2. [SOLVED] script to create new worksheet with values
    By mmestan in forum Excel General
    Replies: 2
    Last Post: 04-16-2014, 01:42 PM
  3. Create Next /Previous command buttons also Modify existing record in a Userform
    By rabalam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2012, 04:10 PM
  4. Create Command Buttons based on Worksheet Names
    By Qppg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-20-2010, 12:53 AM
  5. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  6. script to create csv file from a worksheet in a multi-sheet workbook
    By jermsalerms in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-20-2008, 02:13 AM
  7. Replies: 2
    Last Post: 04-22-2005, 09:08 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