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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,224,876
Messages
6,181,521
Members
453,050
Latest member
Obil

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