Consulting

Results 1 to 3 of 3

Thread: Solved: Copy Data from Sheet 1 to sheet 2 with auto

  1. #1

    Solved: Copy Data from Sheet 1 to sheet 2 with auto

    Hi master vba,

    I need helps on my excel since i'm zero background on VBA knowledge.

    At sheet 1, i have 8 different running data and i need to collect all this data at sheet 2 for data collection.

    At sheet 2, the data arrange from top to bottom based on every 30minute

    1. I need vba program to copy data from sheet 1 to sheet 2.
    2. Is there any possibility to do auto data collection for every 30minute.

    Thanks in advance for helps

    Muzammel

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Give this a try
    [VBA]Option Explicit
    Dim i As Long

    Sub test()
    Application.OnTime TimeValue("08:00:00") + i * TimeValue("00:30:00"), "my_Procedure"
    i = i + 1
    End Sub

    Sub My_Procedure()
    Sheets(1).Cells(3, 2).Resize(, 8).Copy Sheets(2).Cells(i + 3, 3)
    If i = 30 Then
    i = 0
    Exit Sub
    End If
    test
    End Sub

    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    thanks mdmackillop,

    i will try on monday and update the result.

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •