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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,939
Messages
6,175,529
Members
452,651
Latest member
wordsearch

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