Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default change all the autoshapes

Hi,
I'm wondering if it's possible to change all the autoshapes in an Excel 2003
worksheet from oval to square.

If there's a way to do this using VBA it would certainly save me a lot of
time and effort.

Thanks in advance,
Max


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default change all the autoshapes

Was the play a success?
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware

Sub SquareUpThoseCorners()
Dim shp As Excel.Shape
For Each shp In ActiveSheet.Shapes
If shp.AutoShapeType = msoShapeOval Then
shp.AutoShapeType = msoShapeRectangle
shp.Height = shp.Width
End If
Next
End Sub
'------------



"Max Bialystock"

wrote in message
Hi,
I'm wondering if it's possible to change all the autoshapes in an Excel 2003
worksheet from oval to square.

If there's a way to do this using VBA it would certainly save me a lot of
time and effort.

Thanks in advance,
Max


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default change all the autoshapes

And this should prevent errors...

Sub SquareUpThoseCorners_R1()
Dim shp As Excel.Shape
For Each shp In ActiveSheet.Shapes
If shp.Type = msoAutoShape Then
If shp.AutoShapeType = msoShapeOval Then
shp.AutoShapeType = msoShapeRectangle
shp.Height = shp.Width
End If
End If
Next
End Sub
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html
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
How do I change an AutoShapes Callout line gap ? nelli82669 Charts and Charting in Excel 0 July 31st 09 01:49 PM
autoshapes Rodster Excel Discussion (Misc queries) 4 May 23rd 08 01:06 PM
How do you change the default text alignment for Excel autoshapes bk2001 Excel Discussion (Misc queries) 1 May 18th 07 03:22 PM
autoshapes babirt Excel Worksheet Functions 0 March 22nd 07 01:58 PM
autoshapes AmyTaylor[_26_] Excel Programming 7 September 3rd 05 09:02 PM


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