+ Reply to Thread
Results 1 to 8 of 8

VBA to start a new sheet everyday?

  1. #1
    Registered User
    Join Date
    02-28-2020
    Location
    Greensburg, IN
    MS-Off Ver
    2013
    Posts
    19

    VBA to start a new sheet everyday?

    Is there a way to make VBA code start on a new sheet everyday? Or even at a certian time?
    Right now I have one large running sheet that is keeping track of 3 machines everyday.
    Please let me know if this can be done.
    PS - I have taught myself anything I know about VBA so please be patient.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    No need VBA, just create a template …

  3. #3
    Registered User
    Join Date
    02-28-2020
    Location
    Greensburg, IN
    MS-Off Ver
    2013
    Posts
    19

    Re: VBA to start a new sheet everyday?

    Again..new at this...please explain

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA to start a new sheet everyday?

    If you shut down the PC at night then a simple Auto_Open Macro. Otherwise an OnTime macro. So how do you manage your PC.

    I am unfamiliar with templates but I will know more in a few minutes.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Create the workbook as expected then use the 'Save as' Excel command and choose the template file format as explained in Excel help …

  6. #6
    Registered User
    Join Date
    02-28-2020
    Location
    Greensburg, IN
    MS-Off Ver
    2013
    Posts
    19

    Re: VBA to start a new sheet everyday?

    Quote Originally Posted by mehmetcik View Post
    If you shut down the PC at night then a simple Auto_Open Macro. Otherwise an OnTime macro. So how do you manage your PC.

    I am unfamiliar with templates but I will know more in a few minutes.
    The PC stays running at all times...except maybe on the weekends.
    But is i do a time macro....how would the info be saved to the new sheet?
    Here is the code that i have for one machine

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA to start a new sheet everyday?

    Something like:

    You will struggle to close your workbook with OnTime running so run CancelOnTime first.

    In your situation you would probable be wise to move the CancelOnTime to the Workbook close event.

    That event is found in the ThisWorkbook Macro Module in the Visual Basic Project Explorer.

    Let me know if this is double dutch to you and I will send you some Screen Shots tomorrow.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-28-2020
    Location
    Greensburg, IN
    MS-Off Ver
    2013
    Posts
    19

    Re: VBA to start a new sheet everyday?

    Yes....this is double dutch! And the not the rope jumping!!
    Please send me some screen shots.

+ 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. Replies: 3
    Last Post: 01-28-2020, 02:14 PM
  2. User enter start & end date - print sheet with start date, update 1, print sheet
    By Demanda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2019, 07:58 PM
  3. [SOLVED] Macro to copy data from multiple sheets and put it in one sheet.......everyday
    By Ash_Maverick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2016, 05:20 AM
  4. Replies: 7
    Last Post: 01-21-2016, 09:10 PM
  5. Replies: 17
    Last Post: 01-25-2014, 06:31 AM
  6. Replies: 1
    Last Post: 08-24-2013, 07:01 AM
  7. [SOLVED] 'Copy to' Advance Filter depend only on sheet ID not start sheet
    By Sandy Yates in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2006, 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