Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Excel 2007: 2 Problems with textboxes

At first I thought this might be a problem with statement order. I've found
several things, mostly in charting, that used to be insensitive to the order
of the commands but in 2007 the order is important. But even putting
..AutoSize = True at the end doesn't help. The width of the textbox is not
changed by .AutoSize. But I noticed that the height of the textbox is scaled
to fit the width and the amount of text. So Excel is doing something, just
not the same thing it used to do, and not the thing we are expecting it to
do.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"MrT" wrote in message
...
Hi,

I've just noticed that the textboxes are not resized when autosize is set
to
true:

With Worksheets(1)
.Shapes.AddTextbox(msoTextOrientationHorizontal, 12, 12, 12,
12).Select
With Selection
.AutoSize = True
.Characters.Text = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
.Font.Name = "Arial"
.Font.Size = 8
End With
End With

This works with all previous excel versions. With Excel 2007, you'll get a
vertical textbox with a columns of Zs.

May be they've changed the way to write, from to left to right to up to
down
... just let me know.

Another thing: it is (almost) impossible to catch a shape (textbox) for
example to drag and drop it from one place to another, on a worksheet. If
anyone has a trick I'd like to know it.

Cheers,

MrT






Reply
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
Language problems in Excel 2007 MarcVanderhaegen Setting up and Configuration of Excel 0 February 10th 10 08:59 AM
unknown textboxes in excel 2007 ALNIOS ANOGIS Excel Discussion (Misc queries) 1 September 8th 09 04:54 PM
Two problems with Excel 2007 Pygmalion Excel Discussion (Misc queries) 0 October 22nd 07 08:34 AM
Excel 2007 Problems [email protected] Excel Discussion (Misc queries) 1 March 5th 07 07:30 PM
Textboxes in Excel 2007 Beta 2 Macros [email protected] Excel Programming 0 June 21st 06 04:59 PM


All times are GMT +1. The time now is 01:43 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"