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
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

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


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

thank you ...
 

Watch MrExcel Video

Forum statistics

Threads
1,123,504
Messages
5,602,060
Members
414,498
Latest member
jordanmiller7890

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
Top