+ Reply to Thread
Results 1 to 4 of 4

Create copies of data and timestamp them

  1. #1
    Registered User
    Join Date
    02-09-2023
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    4

    Create copies of data and timestamp them

    Hi excel guru's,

    Question, Im trying to create a button in sheet Realtime.
    When I click the button a macro should run and copy and past the data to the first empty row in sheet Timestamps.
    Every row that was copied should get the date from today behind it so we can manage the data per momentum per date.

    Any help everyone? No idea on how to do this.

    Timestamps.xlsx

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

    Question Re: Create copies of data and timestamp them


    Hi,

    no such a good idea, what you will do when your worksheet will be entirely filled - VBA procedure crashing -
    or according to its size the opening will become slower & slower ?

  3. #3
    Registered User
    Join Date
    02-09-2023
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    4

    Re: Create copies of data and timestamp them

    To be honest Marc, I need this solution....and I have no idea how.
    The timestamps will be 8 times the amount of rows per time.
    So not many records

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

    Cool Try this !


    According to your attachment a beginner starter VBA procedure :

    PHP Code: 
    Sub timestamp()
        
    Dim Rg(1) As Range
        Set Rg
    (0) = [A1].CurrentRegion.Rows("2:" & [A1].CurrentRegion.Rows.Count)
        
    Set Rg(1) = Sheets("Timesttamps").Cells(Rows.Count1).End(xlUp)(2)
        
    Rg(0).Copy Rg(1)
        
    Rg(1)(1Rg(0).Columns.Count 1).Resize(Rg(0).Count) = Date
        Erase Rg
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 02-09-2023 at 09:14 AM. Reason: optimization ...

+ 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 Timestamp data and create master sheet
    By KerahJoy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2023, 03:12 PM
  2. Replies: 3
    Last Post: 01-31-2020, 01:16 PM
  3. VBA to create multiple copies of a sheet, copies named based on list in other sheet
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2019, 02:40 AM
  4. [SOLVED] Looking to create a formula that copies data from a range of cells
    By Sam_Alex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-09-2018, 07:25 AM
  5. Replies: 2
    Last Post: 02-12-2018, 04:26 AM
  6. Need to create a sales planner that copies and pastes data from one sheet to another.
    By gjmathews in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2015, 05:02 PM
  7. Replies: 6
    Last Post: 11-18-2013, 11:28 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