Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I have a problem when implementing my coding:
I am using Ontime Method to record data from a dynamic datasource. For better use, I organise at least 30 sheets to use this method for the same range A1:A10, every sheet same place but different data. I wonder a way to initiate them and stop them at the same time. the codes are following: Sub Update() Dim myCell As Range NextTime = Time + TimeValue("00:00:01") Range("A1:A10").Copy Set myCell = Cells(Rows.Count, 2).End(xlUp)(2) myCell.PasteSpecial _ Paste:=xlPasteValues With myCell.Offset(0, -1).Resize(3) .Value = Now .NumberFormat = "mm/dd/yy hh:mm:ss" End With Application.OnTime NextTime, "Update" End Sub When i only put this in Module, it excuted only for the activated sheet. Hope to excute 30 sheets that I want no matter which sheet I activate. But for the rest of the sheets, I do not want this procedure realised. Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
synchronizing mutiple sheets to mirror the previous data | Excel Discussion (Misc queries) | |||
Getting a Sheet to Choose to Display Other Sheets | Excel Discussion (Misc queries) | |||
Repost:Synchronizing two sheets within the same workbook | Excel Discussion (Misc queries) | |||
Synchronizing two sheets within the same workbook | Excel Discussion (Misc queries) | |||
Choose several sheets in VBA | Excel Programming |