Hi
I present my pulse in a graph like this:
To present graph per exercise I use a macro that deletes the graph, copies new data and past data into graph. ( I did not manage to solve it in other ways.)
The macro the goes back and forth to the raw data copy date, max puulse and info text.
I have navigation (next + previous)
I have recorded and configured the macro. The macro runs slow.... any way to optimize?
What this macro does is in simple terms
1 choose the graph line
2 delete graph
3 paste new values
Here is my code next dataset:
I present my pulse in a graph like this:
To present graph per exercise I use a macro that deletes the graph, copies new data and past data into graph. ( I did not manage to solve it in other ways.)
The macro the goes back and forth to the raw data copy date, max puulse and info text.
I have navigation (next + previous)
I have recorded and configured the macro. The macro runs slow.... any way to optimize?
What this macro does is in simple terms
1 choose the graph line
2 delete graph
3 paste new values
Here is my code next dataset:
Rich (BB code):
Sub venstre()
'
'
'
Application.ScreenUpdating = False
Sheets("Presentasjon").Select
ActiveSheet.Range("A1").Select
Sheets("GrafData").Select
ActiveCell.Offset(3, -1).Range("A1").Select ' flytter 2 ned 1 til venstre
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy 'pulse
Sheets("Presentasjon").Select
ActiveSheet.ChartObjects("Chart 3").Activate
ActiveChart.FullSeriesCollection(1).Select
Selection.Delete
ActiveChart.Paste
Sheets("GrafData").Select
Selection.End(xlUp).Select
Selection.Copy 'copy max
Sheets("Presentasjon").Select
ActiveSheet.Range("A1").Select
ActiveCell.Offset(1, 19).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("GrafData").Select
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Copy 'date
ActiveCell.Offset(-1, 0).Range("A1").Select
Sheets("Presentasjon").Select
ActiveCell.Offset(0, -9).Range("A1").Select
ActiveSheet.Paste
Sheets("GrafData").Select
ActiveCell.Offset(2, 0).Range("A1").Select
Selection.Copy 'copy info
Sheets("Presentasjon").Select
ActiveCell.Offset(0, 3).Range("A1").Select
ActiveSheet.Paste
End Sub