+ Reply to Thread
Results 1 to 3 of 3

Code to Copy and Paste Values with interval of 3 Seconds

Hybrid View

rexcel548562 Code to Copy and Paste Values... 07-25-2022, 02:25 AM
mjr veverka Re: Code to Copy and Paste... 07-25-2022, 05:36 AM
k1dr0ck Re: Code to Copy and Paste... 07-26-2022, 02:56 AM
  1. #1
    Forum Contributor
    Join Date
    07-10-2022
    Location
    USA
    MS-Off Ver
    2021
    Posts
    190

    Code to Copy and Paste Values with interval of 3 Seconds

    Hi,

    I want to copy values from Cell D1 and paste into cell C1. I want that whenever value is changed in cell D1, then Code should detect it and after 3 seconds it should copy this value from cell D1 and paste into cell B1.
    Last edited by rexcel548562; 07-25-2022 at 02:28 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,261

    Re: Code to Copy and Paste Values with interval of 3 Seconds

    So why do you need cell "C1" here what does "C1" have to do with all of this ?

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: Code to Copy and Paste Values with interval of 3 Seconds

    copy from D1 to C1 then after 3 seconds copy to B1?

    try

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim intersection As Range
    Set intersection = Intersect(Target, Range("D1"))
    
        If Not intersection Is Nothing Then
            Range("C1").Value = Range("D1").Value
            Application.Wait Now() + TimeValue("0:0:03")
            Range("B1").Value = Range("D1").Value
        End If
    
    End Sub

+ 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 at Time Interval
    By Nikhil212 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2020, 01:41 PM
  2. Returning # Of Seconds In Given Interval From Non-Interval Data
    By MrExcelsior in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2020, 02:47 PM
  3. Copy and Paste done at time interval
    By mcp77 in forum Excel General
    Replies: 5
    Last Post: 10-20-2016, 10:56 AM
  4. Copy and Paste down at time interval
    By mcp77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2016, 02:51 AM
  5. Copy and paste code pasting won't paste just values
    By thehotbreadguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2013, 11:12 PM
  6. copy paste with interval
    By pani_hcu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2009, 01:27 PM
  7. copy and paste of columns with interval
    By pani_hcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2009, 10:11 AM

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