PC Review


Reply
Thread Tools Rate Thread

Change text in textbox in chart in Excel 2007

 
 
Stratuser
Guest
Posts: n/a
 
      18th Feb 2010
After I changed from Excell 2003 to Excel 2007, the following VBA code, which
changed the date in a textbox in a chart, no longer worked:

Sheets("All Styles").Select
ActiveChart.Shapes("Text Box 1026").Select
Selection.Characters.Text = Range("Date").Value

The macro recorder doesn't record anything when I try to use it to get some
code. Any ideas for fixing this?

 
Reply With Quote
 
 
 
 
Herbert Seidenberg
Guest
Posts: n/a
 
      19th Feb 2010
Excel 2007 Shape Text
Sub Textbox()
Dim d As Date
With Sheets("Summary")
d = .Range("DDate")
With .ChartObjects(1).Chart.Shapes(1).TextEffect
.FontSize = 12
.FontBold = True
.Text = d
End With
End With
End Sub


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to change chart legend text (Excel 2007) Bob Phillips Microsoft Excel Discussion 0 19th Dec 2009 11:06 AM
How to create a Textbox in a standalone Excel 2007 chart using mac ew_jammer Microsoft Excel Charting 0 18th May 2009 08:11 PM
Re: Excel 2007 chart text box bug Jon Peltier Microsoft Excel Charting 0 21st Apr 2008 06:20 PM
Change text in Textbox on Chart? Matt Williamson Microsoft Excel Programming 3 5th Jan 2008 04:34 AM
Change text in Textbox on Chart? Matt Williamson Microsoft Excel Charting 3 5th Jan 2008 04:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:09 AM.