+ Reply to Thread
Results 1 to 1 of 1

Copy and Paste from one workbook to another automatically every minute with time

  1. #1
    Registered User
    Join Date
    08-03-2020
    Location
    Arkansas
    MS-Off Ver
    2016
    Posts
    1

    Copy and Paste from one workbook to another automatically every minute with time

    Hi,
    I am having problems completing a VBA for copy and paste a cell from one workbook to another automatically every minute. For example, A4 in sheet1 changes and cell A2 in sheet2 needs to show same value every minute automatically. Then each time the cell in A4 sheet1 changes, the next row in sheet2 (A2, A3, etc) will be added sequentially. When I have a formula in sheet1 (say =sum(A1:A3) to display the result in A4, it will not paste to A2 sheet2. Hope this make sense and any help is appreciated. Thanks.

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$4" Then
    Application.Wait (Now + TimeValue("0:01:00"))
    a = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Row + 1
    Sheets("Sheet2").Range("A" & a).Value = Sheets("Sheet1").Range("A4").Value
    End If
    End Sub
    Last edited by sidneybaum; 08-14-2020 at 03:22 PM. Reason: add VBA

+ 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 paste dynamic values after every minute
    By Shek_2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2020, 05:16 AM
  2. VBA Code for Copy Column and paste value in new sheet every 5 minute
    By hit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2016, 06:30 AM
  3. Copy Data Paste Another Workbook Transpose automatically
    By sheneb91 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2014, 10:21 AM
  4. Replies: 6
    Last Post: 03-26-2014, 11:40 PM
  5. [SOLVED] Run-Time Error - VBA Copy and Paste Multiple Row From One Workbook to Another
    By jxc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 03:47 PM
  6. [SOLVED] VBA for Automatically copy Row data to new worksheet every minute
    By naira in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-03-2013, 02:57 PM
  7. Need help for range to automatically copy and paste as values before closing workbook
    By trickyricky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2011, 08:31 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