-
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
-
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'
-
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
-
Forum Rules