H
Hari Prasadh
Hi,
If I paste an Excel OLE object in to powerpoint and now if I do regroup it
displays "This is an imported object, not a group. if you convert it to a
Microsoft Office drawing object, embedded data or linked information will be
lost. do you want to convert the object?"
I hesitatingly presses yes. It turned out that each cell, cell border etc
got converted in to individual textBoxes and Lines.
I stumbled on the above strange feature of excel OLE getting converted in
this manner purely through luck. (clicked on ungroup by mistake)
I have inherited some slides which looks like a Table but if I click on a
number within it, it was residing in its own textbox. I was wondering as to
why somebody took the trouble of making a Table with each grid in different
textbox. Now, I realise that they must have pasted an excel OLE and used the
ungroup feature.
Now, I plan to use this feature for making such kind of slides. I recorded a
macro (added the display alerts from my side).
Sub UngroupExcelOLE()
'
' Macro recorded 7/6/2005 by Hari Prasadh
'
Application.DisplayAlerts = ppAlertsNone
ActiveWindow.Selection.SlideRange.Shapes("Object 6").Select
ActiveWindow.Selection.ShapeRange.Ungroup.Select
ActiveWindow.Selection.Unselect
Application.DisplayAlerts = ppAlertsAll
End Sub
Sub RegroupExcelOLE()
'
' Macro recorded 7/6/2005 by Hari Prasadh
'
Application.DisplayAlerts = ppAlertsNone
ActiveWindow.Selection.ShapeRange.Regroup.Select
Application.DisplayAlerts = ppAlertsAll
End Sub
So, If I ungroup then I can even quickly regroup, but what if I have more
than 1 group in a single slide. I ungroup Group1 and then ungroup Group2 and
then select some other slide and then come back to this slide and then press
on regroup then does it do Groping of Group1 or group2. (Am I sorry, I didnt
try out this easy stuff on my own.....) Also to what extent does PPT
remember the need to ungroup and regroup the previous groups etc. And does
it remember this for each slide the various REGROUPING it would do?
I also see that even if one has ungrouped one can "rebuild" the excel OLE by
clicking on regroup. So, why does excel say "if you convert it to a
Microsoft Office drawing object, embedded data or linked information will be
lost."? as I did not lose any information.
Also, I see that if I group, regroup using Macro then am able to Undo the
same. How is it that PPT allows undo feature with Macro (Excel always
empties the Undo stack) ?
Somebody, please tell me (or point me) a little more about this feature (I
pursued Sonia C's tuts but it did not refer to Excel OLE getting ungrouped
in this manner?).
Thanks a lot,
Hari
India
If I paste an Excel OLE object in to powerpoint and now if I do regroup it
displays "This is an imported object, not a group. if you convert it to a
Microsoft Office drawing object, embedded data or linked information will be
lost. do you want to convert the object?"
I hesitatingly presses yes. It turned out that each cell, cell border etc
got converted in to individual textBoxes and Lines.
I stumbled on the above strange feature of excel OLE getting converted in
this manner purely through luck. (clicked on ungroup by mistake)
I have inherited some slides which looks like a Table but if I click on a
number within it, it was residing in its own textbox. I was wondering as to
why somebody took the trouble of making a Table with each grid in different
textbox. Now, I realise that they must have pasted an excel OLE and used the
ungroup feature.
Now, I plan to use this feature for making such kind of slides. I recorded a
macro (added the display alerts from my side).
Sub UngroupExcelOLE()
'
' Macro recorded 7/6/2005 by Hari Prasadh
'
Application.DisplayAlerts = ppAlertsNone
ActiveWindow.Selection.SlideRange.Shapes("Object 6").Select
ActiveWindow.Selection.ShapeRange.Ungroup.Select
ActiveWindow.Selection.Unselect
Application.DisplayAlerts = ppAlertsAll
End Sub
Sub RegroupExcelOLE()
'
' Macro recorded 7/6/2005 by Hari Prasadh
'
Application.DisplayAlerts = ppAlertsNone
ActiveWindow.Selection.ShapeRange.Regroup.Select
Application.DisplayAlerts = ppAlertsAll
End Sub
So, If I ungroup then I can even quickly regroup, but what if I have more
than 1 group in a single slide. I ungroup Group1 and then ungroup Group2 and
then select some other slide and then come back to this slide and then press
on regroup then does it do Groping of Group1 or group2. (Am I sorry, I didnt
try out this easy stuff on my own.....) Also to what extent does PPT
remember the need to ungroup and regroup the previous groups etc. And does
it remember this for each slide the various REGROUPING it would do?
I also see that even if one has ungrouped one can "rebuild" the excel OLE by
clicking on regroup. So, why does excel say "if you convert it to a
Microsoft Office drawing object, embedded data or linked information will be
lost."? as I did not lose any information.
Also, I see that if I group, regroup using Macro then am able to Undo the
same. How is it that PPT allows undo feature with Macro (Excel always
empties the Undo stack) ?
Somebody, please tell me (or point me) a little more about this feature (I
pursued Sonia C's tuts but it did not refer to Excel OLE getting ungrouped
in this manner?).
Thanks a lot,
Hari
India