D
Daniel H.
' I want to Move a grouped shape for the different distance to its
' original Object
' I can not acces the Cells
' app,res,result ... Object
' pinx,piny ... Long
Set app = Master.GetWindowObject
app.Selection.SelectAll
Set res = app.Selection.Group
pinx = res.Cells("PinX")
piny = res.Cells("PinY")
app.Selection.Copy visCopyPasteNoTranslate
app.Selection.Ungroup
Set objCopiedPage = objPages.Add()
objCopiedPage.Paste visCopyPasteNoTranslate
app.Selection.SelectAll
result.Cells("PinX") = result.Cells("PinX") + (pinx - result.Cells("PinX"))
result.Cells("PinY") = result.Cells("PinY") + (piny - result.Cells("PinY"))
app.Selection.Ungroup
' original Object
' I can not acces the Cells
' app,res,result ... Object
' pinx,piny ... Long
Set app = Master.GetWindowObject
app.Selection.SelectAll
Set res = app.Selection.Group
pinx = res.Cells("PinX")
piny = res.Cells("PinY")
app.Selection.Copy visCopyPasteNoTranslate
app.Selection.Ungroup
Set objCopiedPage = objPages.Add()
objCopiedPage.Paste visCopyPasteNoTranslate
app.Selection.SelectAll
result.Cells("PinX") = result.Cells("PinX") + (pinx - result.Cells("PinX"))
result.Cells("PinY") = result.Cells("PinY") + (piny - result.Cells("PinY"))
app.Selection.Ungroup