Setting beginarrow head style type in excel using VbScript

edTech

New Member
Joined
Dec 8, 2019
Messages
33
Office Version
  1. 2019
Platform
  1. Windows
Good Morning,
I am writing a script in VbScript that interacts with excel and I am trying to set the hiLoLines property to create the BeginArrowHeadStyle, but I am unsuccessful. Noted below I have place my code of what I have so far and this is within a graph. Please help.


objReadXL.ActiveChart.SeriesCollection(2).Format.line.visible = false
objReadXL.ActiveChart.SeriesCollection(2).MarkerStyle = 8
objReadXL.ActiveChart.SeriesCollection(2).MarkerSize = 7
objReadXL.ActiveChart.SeriesCollection(2).MarkerBackgroundColor = RGB(0, 0, 255)


objReadXL.ActiveChart.ChartGroups(1).HasHiLoLines = True

objReadXL.ActiveChart.ChartGroups(1).HasHiLoLines.line.BeginArrowHeadStyle = 6 'Code Fails here
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Good Morning,
I am writing a script in VbScript that interacts with excel and I am trying to set the hiLoLines property to create the BeginArrowHeadStyle, but I am unsuccessful. Noted below I have place my code of what I have so far and this is within a graph. Please help.


objReadXL.ActiveChart.SeriesCollection(2).Format.line.visible = false
objReadXL.ActiveChart.SeriesCollection(2).MarkerStyle = 8
objReadXL.ActiveChart.SeriesCollection(2).MarkerSize = 7
objReadXL.ActiveChart.SeriesCollection(2).MarkerBackgroundColor = RGB(0, 0, 255)


objReadXL.ActiveChart.ChartGroups(1).HasHiLoLines = True

objReadXL.ActiveChart.ChartGroups(1).HasHiLoLines.line.BeginArrowHeadStyle = 6 'Code Fails here


I have figured out the code as objReadXL.ActiveChart.ChartGroups(1).HiLoLines.Format.Line.BeginArrowheadStyle = 6

thank you ...
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top