+ Reply to Thread
Results 1 to 9 of 9

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

  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"

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    And this in module 1

    Please Login or Register  to view this content.
    Last edited by alansidman; 02-03-2020 at 02:13 PM.

  2. #2
    Registered User
    Join Date
    01-21-2013
    Location
    Europe
    MS-Off Ver
    Excel 2016 Win
    Posts
    11

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

    Range("b19666")....
    When you do not use sheet-object before Range then range refers to activesheet. Try to use Worksheet object, i.e.:
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

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

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

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

    crossposted: https://www.mrexcel.com/board/thread...heets.1122795/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

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

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

    Quote Originally Posted by jotpol View Post
    Range("b19666")....
    When you do not use sheet-object before Range then range refers to activesheet. Try to use Worksheet object, i.e.:
    Please Login or Register  to view this content.
    Hi do you mean like this ? i get error compile

    Please Login or Register  to view this content.
    Last edited by ste33uk; 02-03-2020 at 02:49 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

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

    Hi

    maybe try this..
    Please Login or Register  to view this content.
    zeddy

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

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

    Thanks for all the help.
    This code works

    Please Login or Register  to view this content.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

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

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

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

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

    Hi could someone change this code so it also sends data from C3 to column D, C4 to column E,C5 to column F and so on.

    Please Login or Register  to view this content.

+ 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. 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