LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Excel 2007 Text Box

This is indeed a problem, I have it as well. From the Excel 2007 VBA
documentation, this behavious is as expected because the object
created is considered to be a multiline text object and the height is
changed by Autosize and not the width (as per all previous versions of
Excel).

What I cant find is how to chnage this to a non-multiline text object.
The documentation referes to a property Multiline = boolean but this
errors as an undefined property.

Any one can help it would be greaty appreaciated bu both of us.

Cheers,
Dennis.

On Dec 6 2006, 3:51 am, "Bill" wrote:
Hello,
I am trying to add a text box to the bottom left portion of a chart usingExcel2007 (the trial version downloaded from Microsoft). I could do this
withExcel2003 using the following code:

Chheight = ActiveChart.ChartArea.Height
Chtleft = ActiveChart.ChartArea.Left
ActiveChart.TextBoxes.Add(Chtleft, Chheight, 10, 10).Select
Selection.Characters.Text = "This is my text"
Selection.autosize = true

WithExcel2007, it will not place the text box below the x axis, no matter
what value I put in for Chheight. And, I get an error message when trying
toautosizethe text box.

Any ideas? Thanks,

Bill


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default font for pasted text in text boxes - Excel 2007 MS OFFICE USER EIT Excel Discussion (Misc queries) 0 March 25th 10 09:01 PM
Excel 2007 text import as text not date dar Excel Discussion (Misc queries) 3 September 2nd 09 07:25 PM
autofit text when resizing text box in Excel 2007 tinks Excel Discussion (Misc queries) 0 May 4th 09 04:20 PM
text box in Excel 2007 Simon Minder Excel Worksheet Functions 1 March 12th 08 04:12 PM
Excel 2007 Text Box Nick Excel Discussion (Misc queries) 3 May 10th 07 07:12 PM


All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"