pedro-egoli
Well-known Member
- Joined
- Apr 25, 2004
- Messages
- 1,217
- Office Version
- 2016
- Platform
- Windows
Some assistance please
This macro deletes all entries that are not on the half hour, and deletes date from date and time which are imported,
Works if I manually run it by clicking on bottom cell and selecting Macro/run blah.
I am trying to have the macro automatically run by use of this
However, am unable to do so with the “callblah” being problem.
Once this is sorted I would like a chart to be introduced from columns A & B after original macro runs.
A holds time and B data applicable at that time.
Thanks
Pedro
This macro deletes all entries that are not on the half hour, and deletes date from date and time which are imported,
Works if I manually run it by clicking on bottom cell and selecting Macro/run blah.
Code:
Sub blah()
For rw = ActiveCell.Row To 4 Step -6
Range(Cells(rw - 1, 1), Cells(rw - 5, 1)).EntireRow.Delete
Columns("A:A").NumberFormat = "[$-409]h:mm AM/PM;@"
Next rw
End Sub
I am trying to have the macro automatically run by use of this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Set t = Target
Set r = Range("A1:A100")
If Intersect(t, r) Is Nothing Then Exit Sub
Application.EnableEvents = False
Callblah
Application.EnableEvents = True
End Sub
However, am unable to do so with the “callblah” being problem.
Once this is sorted I would like a chart to be introduced from columns A & B after original macro runs.
A holds time and B data applicable at that time.
Thanks
Pedro