VBA Express Forum
>
VBA Code & Other Help
>
Excel Help
> Solved: I want to add a textbox on the chart
Log in
View Full Version :
Solved: I want to add a textbox on the chart
clif
04-29-2010, 06:56 AM
I have a chart in excel. I want to add a textbox on the chart by vba. The content of text depend on A1 cell ! What is the vba code. Thank you very much!
lucas
04-29-2010, 07:42 AM
Worksheets("Sheet1").ChartObjects(1).Chart.Shapes.AddTextbox(msoTextOrientationHorizontal, 1, 1, 100, 20).TextFrame.Characters.Text = Sheets("Sheet1").Range("A1").Value
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.