S
Sstar99
So far, I still did not find a proper channel to report these bugs to
Microsoft. Some people suggest me to visit "beta.Microsoft.com". But to get
into the site, I would need to Guest ID, which I still don't have. If you
are from Microsoft, I hope you can help feedback the bugs to the Office
development team as the problem below are most likely bugs.
1. Try to insert to Excel 2007 B2 a smooth line by using FreeForm object
with following sample Macro code does not work as expected any more;
'-----------------------------------------------------------------------------------
Sub testFreeform()
Dim docActive As Worksheet
Set docActive = ActiveSheet
'Build a FreeForm Object
With docActive.Shapes.BuildFreeform(msoEditingCorner, 360, 200)
'Adding several curved segment to this FreeForm object
.AddNodes msoSegmentCurve, msoEditingCorner, _
380, 230, 400, 250, 450, 300
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 400
.AddNodes msoSegmentCurve, msoEditingAuto, 350, 190
.AddNodes msoSegmentCurve, msoEditingAuto, 400, 150
'Convert the FreeForm to a Shape object
.ConvertToShape
End With
End Sub
'----------------------------------------------------------------------------------
Run the Macro function above, instead of getting a smooth curve, you will
get Shooting lines. The above Macro code works well on Excel 2003/Excel
2002/Excel 2000. The same problem happens to PowerPoint 2007 as well. The
sample Macro code for PowerPoint 2007 is
'------------------------------------------------------------------------------------
'PowerPoint. Insert a smooth line to Slide 1
Sub testFreeform()
Dim docActive As Slide
Set docActive = ActivePresentation.Slides(1)
With docActive.Shapes.BuildFreeform(msoEditingCorner, 360, 200)
.AddNodes msoSegmentCurve, msoEditingCorner, _
380, 230, 400, 250, 450, 300
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 400
.AddNodes msoSegmentCurve, msoEditingAuto, 350, 190
.AddNodes msoSegmentCurve, msoEditingAuto, 400, 150
.ConvertToShape
End With
End Sub
'-----------------------------------------------------------------------------------
2. Drawing a scribble in Excel 2007 Beta 2 is different from that in earlier
Excel versions. Most likely, it is a bug. Start Excel 2007 -> Goto "Insert"
Tab -> Click on Shapes -> In the drop-down menu, click on Scribble icon.
Found the way to draw sribble is different. And the way to draw scribble is
exactly the same as drawing a FreeForm object.
3. Display problem. Insert a shape to Excel 2007 Document. Found
occationally the inserted Shape cannot be seen at all or partially cannot be
seen. This bug can be easily re-produced. My Excel document is set to Display
from Right to Left, and I am not sure whether the SHAPE display problem is
related to my this setting.
4. The two methods of Excel Application.Window
PointsToScreenPixelsX
and
PointsToScreenPixelsY
do not give correct result under the following to conditions.
- Excel Window is in Split mode;
- "Page Layout View" is selected instead of the "Normal" view .
Actually I have already found improvements on the two functions because in
the earlier versions of Excel, the two functions do not give correct result
under more conditions, e.g. when
- "DisplayRightToLeft" property is set "True", i.e. when Excel window
is viewed from Right to Left;
- The zoom is not set as 100%
- Excel Window is in Split mode;
- "Page Layout View" is selected instead of the "Normal" view.
That problem can be tested out easily. If sample code is needed, I can
provide.
5. Excel 2007 is said to be Backward compatible on CommandBar object. But I
found the CommandBar under Excel 2007's Add-ins tab respond really slow. For
example, if you want to change your CommandBar's control button property from
Visible to Invisible when running a Macro code, I found the CommandBar's
Button does not update visually immediately. Only when your program quits and
when you switch from "Add-Ins" tab to another tab and switch back, you would
be able to see the change. In Excel 2003 and earlier versions, there is no
such a problem. In Excel 2007, create a toolbar called my MyBar and put one
visible button onto it, run the following Macro code, you will be able to see
that it takes 10 seconds for button become invisible.
'-----------------------------------------------------------------------------------------------
Private Declare Function Sleep Lib "kernel32" (ByVal timeout As Long) As Long
Sub test()
Application.CommandBars("MyBar").Controls(1).Visible = False
DoEvents
'sleep for 10 seconds
Sleep 10000
MsgBox "Program Quit"
End Sub
'-----------------------------------------------------------------------------------------------
Microsoft. Some people suggest me to visit "beta.Microsoft.com". But to get
into the site, I would need to Guest ID, which I still don't have. If you
are from Microsoft, I hope you can help feedback the bugs to the Office
development team as the problem below are most likely bugs.
1. Try to insert to Excel 2007 B2 a smooth line by using FreeForm object
with following sample Macro code does not work as expected any more;
'-----------------------------------------------------------------------------------
Sub testFreeform()
Dim docActive As Worksheet
Set docActive = ActiveSheet
'Build a FreeForm Object
With docActive.Shapes.BuildFreeform(msoEditingCorner, 360, 200)
'Adding several curved segment to this FreeForm object
.AddNodes msoSegmentCurve, msoEditingCorner, _
380, 230, 400, 250, 450, 300
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 400
.AddNodes msoSegmentCurve, msoEditingAuto, 350, 190
.AddNodes msoSegmentCurve, msoEditingAuto, 400, 150
'Convert the FreeForm to a Shape object
.ConvertToShape
End With
End Sub
'----------------------------------------------------------------------------------
Run the Macro function above, instead of getting a smooth curve, you will
get Shooting lines. The above Macro code works well on Excel 2003/Excel
2002/Excel 2000. The same problem happens to PowerPoint 2007 as well. The
sample Macro code for PowerPoint 2007 is
'------------------------------------------------------------------------------------
'PowerPoint. Insert a smooth line to Slide 1
Sub testFreeform()
Dim docActive As Slide
Set docActive = ActivePresentation.Slides(1)
With docActive.Shapes.BuildFreeform(msoEditingCorner, 360, 200)
.AddNodes msoSegmentCurve, msoEditingCorner, _
380, 230, 400, 250, 450, 300
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 400
.AddNodes msoSegmentCurve, msoEditingAuto, 350, 190
.AddNodes msoSegmentCurve, msoEditingAuto, 400, 150
.ConvertToShape
End With
End Sub
'-----------------------------------------------------------------------------------
2. Drawing a scribble in Excel 2007 Beta 2 is different from that in earlier
Excel versions. Most likely, it is a bug. Start Excel 2007 -> Goto "Insert"
Tab -> Click on Shapes -> In the drop-down menu, click on Scribble icon.
Found the way to draw sribble is different. And the way to draw scribble is
exactly the same as drawing a FreeForm object.
3. Display problem. Insert a shape to Excel 2007 Document. Found
occationally the inserted Shape cannot be seen at all or partially cannot be
seen. This bug can be easily re-produced. My Excel document is set to Display
from Right to Left, and I am not sure whether the SHAPE display problem is
related to my this setting.
4. The two methods of Excel Application.Window
PointsToScreenPixelsX
and
PointsToScreenPixelsY
do not give correct result under the following to conditions.
- Excel Window is in Split mode;
- "Page Layout View" is selected instead of the "Normal" view .
Actually I have already found improvements on the two functions because in
the earlier versions of Excel, the two functions do not give correct result
under more conditions, e.g. when
- "DisplayRightToLeft" property is set "True", i.e. when Excel window
is viewed from Right to Left;
- The zoom is not set as 100%
- Excel Window is in Split mode;
- "Page Layout View" is selected instead of the "Normal" view.
That problem can be tested out easily. If sample code is needed, I can
provide.
5. Excel 2007 is said to be Backward compatible on CommandBar object. But I
found the CommandBar under Excel 2007's Add-ins tab respond really slow. For
example, if you want to change your CommandBar's control button property from
Visible to Invisible when running a Macro code, I found the CommandBar's
Button does not update visually immediately. Only when your program quits and
when you switch from "Add-Ins" tab to another tab and switch back, you would
be able to see the change. In Excel 2003 and earlier versions, there is no
such a problem. In Excel 2007, create a toolbar called my MyBar and put one
visible button onto it, run the following Macro code, you will be able to see
that it takes 10 seconds for button become invisible.
'-----------------------------------------------------------------------------------------------
Private Declare Function Sleep Lib "kernel32" (ByVal timeout As Long) As Long
Sub test()
Application.CommandBars("MyBar").Controls(1).Visible = False
DoEvents
'sleep for 10 seconds
Sleep 10000
MsgBox "Program Quit"
End Sub
'-----------------------------------------------------------------------------------------------