Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Oh, really?The GetChartElement method returns X and Y of the user selected point in pixels.
The user picks points on the graph (series) based on certain criteria.
Private Sub EmbChart_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
Dim IDNum As Long, rPN As Range
Dim a As Long
Dim b As Long
[b]
'get chart element (pass x,y coordinates)
ActiveChart.GetChartElement x, y, IDNum, a, b
'chart element SERIES
If IDNum = xlSeries Then
'if the 6th series is selected
If a = 6 Then
'assign the selected series POINT to SelectedDT
wsSFC_ChartData1.[SelectedDT] = wsSFC_ChartData1.Range("Dte")(b)[/b]
GetShort_Trav
GetPN_NG_Trav_Short
Set rPN = wsSFC_OPS.Columns(1).Find(wsSFC_ChartData1.[SelectedPN])
'position the embedded spreadsheet object
With wsSFC_OPS.ssShort
.Visible = True
.Top = rPN.Top
.Left = rPN.Offset(0, 1).Left
.Height = wsSFC_OPS.Range(rPN, rPN.Offset(wsSFC_ChartData1.[SelectedPN_Cnt])).Height
.Width = wsSFC_OPS.ChartObjects(1).Width
End With
'load the embedded spreadsheet
Sheet_Load
Else
wsSFC_OPS.ssShort.Visible = False 'embedded spreadsheet
End If
Else
wsSFC_OPS.ssShort.Visible = False 'embedded spreadsheet
End If
InstatiateChart
End Sub