Hi Everyone
I would appreciate any help to fix the following problem.
I am running Excel 97 on NT V4.0. I want to change the width of a grouped shape consisting of up to 22 perpendicular lines using the following code. This code works in Excel 2000 running on Windows 98 SE but does not work in Excel 97. No errors are produced, every statement works EXCEPT the width statement, shown in bold.
X has been set to the number of perpendicular lines, in this case, 22.
Where am I going wrong? Any suggestions would be greatly appreciated.
Thanks in anticipation, Mumfy.
I would appreciate any help to fix the following problem.
I am running Excel 97 on NT V4.0. I want to change the width of a grouped shape consisting of up to 22 perpendicular lines using the following code. This code works in Excel 2000 running on Windows 98 SE but does not work in Excel 97. No errors are produced, every statement works EXCEPT the width statement, shown in bold.
X has been set to the number of perpendicular lines, in this case, 22.
Code:
With Worksheets("Work")
.Activate
ActiveSheet.Shapes.Range(Array(X, X + 1, X + 2, X + 3, X + 4, X + 5, X + 6, X + 7, X + 8, X + 9, _
X + 10, X + 11, X + 12, X + 13, X + 14, X + 15, X + 16, X + 17, X + 18, X + 19, _
X + 20, X + 21)).Group.Select
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 17.25
[b]Selection.ShapeRange.Width = 33# [/b]
Selection.ShapeRange.Rotation = 0#
End With
Thanks in anticipation, Mumfy.