smcmahon83
Board Regular
- Joined
- Jul 12, 2014
- Messages
- 58
Hello,
I am struggling to create a macro that will automatically run another macro (code below), every 15 minutes, starting at 3:30 PM, ending at 10:00 PM only when the workbook is open.
Can anyone help me create this 'timer' macro that I need? Thanks a million in advance.
The macro below simply copies live data from one sheet, and pastes it transposed into a database sheet in the next available row.
-------------------------------
Sub Paster()
'
' Paster Macro
'
Sheets("TOS").Select
Range("Q1:Q21").Select
Selection.Copy
Sheets("Database").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues, Paste:=xlPasteFormats, Transpose:=True
ActiveWindow.SmallScroll Down:=-15
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
End Sub
I am struggling to create a macro that will automatically run another macro (code below), every 15 minutes, starting at 3:30 PM, ending at 10:00 PM only when the workbook is open.
Can anyone help me create this 'timer' macro that I need? Thanks a million in advance.
The macro below simply copies live data from one sheet, and pastes it transposed into a database sheet in the next available row.
-------------------------------
Sub Paster()
'
' Paster Macro
'
Sheets("TOS").Select
Range("Q1:Q21").Select
Selection.Copy
Sheets("Database").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues, Paste:=xlPasteFormats, Transpose:=True
ActiveWindow.SmallScroll Down:=-15
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
End Sub