Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Shapes question

In this little snip of code, the rotation will not work and I can find a
decent example to show me where it is wrong.

Worksheets("fran").Shapes.AddTextbox(msoTextOrient ationHorizontal,
d(i, 5), d(i, 6), 25, 15).TextFrame.Characters.Text = Round(i, 0)
.Shapes(.Shapes.Count).Fill.Transparency = 1#
.Shapes(.Shapes.Count).Fill.ForeColor.SchemeColor = 9
.Shapes(.Shapes.Count).Line.Visible = msoFalse
.Shapes(.Shapes.Count).Rotation = w
.Shapes(.Shapes.Count).Select False

Any help appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Shapes question

If you select a textbox on the worksheet and look down at the drawing
toolbar, you will see the rotation button is grayed out.

If you draw a line on the worksheet and select it and look at the drawing
toolbar, you will see the rotation button is active.

Not all shapes can be rotated.

--
Regards,
Tom Ogilvy


"JackJ" wrote in message
...
In this little snip of code, the rotation will not work and I can find a
decent example to show me where it is wrong.

Worksheets("fran").Shapes.AddTextbox(msoTextOrient ationHorizontal,
d(i, 5), d(i, 6), 25, 15).TextFrame.Characters.Text = Round(i, 0)
.Shapes(.Shapes.Count).Fill.Transparency = 1#
.Shapes(.Shapes.Count).Fill.ForeColor.SchemeColor = 9
.Shapes(.Shapes.Count).Line.Visible = msoFalse
.Shapes(.Shapes.Count).Rotation = w
.Shapes(.Shapes.Count).Select False

Any help appreciated.




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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM


All times are GMT +1. The time now is 09:54 PM.

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

About Us

"It's about Microsoft Excel"