Results 1 to 9 of 9

Automatically copy data to other cells every 5 minutes, multi sheets

Threaded View

  1. #1
    Registered User
    Join Date
    01-27-2020
    Location
    england
    MS-Off Ver
    office 365, excel version 1912
    Posts
    53

    Automatically copy data to other cells every 5 minutes, multi sheets

    Hi i would like to copy data from cell A1 to B column automatically every 5 minutes but with multi sheets.
    The code i have so far works, but it will only copy cell A1 to cell B1 if i am on the current sheet.
    Is it possible to have it copy for all sheets.

    I have this in "this workbook"

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
     'Stop execution when workbook closes
     On Error Resume Next
     Application.OnTime Heure, "Calcul", , False
    End Sub
    Private Sub Workbook_Open()
     'start execution when workbook opens
     Application.OnTime Now + TimeValue("00:05:00"), "Calcul"
    End Sub
    And this in module 1

    Sub Calcul()
     Heure = Now + TimeValue("00:05:00")
     Application.OnTime Heure, "Calcul"
     Range("b19666").End(xlUp).Offset(1) = [a1]
    End Sub
    Last edited by alansidman; 02-03-2020 at 02:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to automatically update and copy data to other sheets
    By kary4567 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-29-2018, 12:01 PM
  2. [SOLVED] automatically copy data from different sheets and sequentially copy to another sheet
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-13-2017, 02:12 PM
  3. Copy Multi Rows From Multi Sheets Based On Column Value And Create New Workbooks
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2017, 04:51 PM
  4. [SOLVED] automatically copy input data to different sheets
    By qiyusi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-04-2017, 10:25 PM
  5. Copy And Paste Cells automatically every x minutes
    By izzanaf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2014, 12:51 PM
  6. Need macro to copy cells into sheets that are automatically generated from list
    By felix_m in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2014, 10:59 AM
  7. Copy data from 1 sheet to other sheets automatically
    By mattyb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2008, 03:43 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