E
Excel User
Hi.
Is it possible to create a routine to import a image from the dialog, that
will:
change the dimensions (x pos, y pos, image width, image height)
Set layer.
Dim UndoScopeID1 As Long
UndoScopeID1 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormPinX).FormulaU = "421 mm"
Application.EndUndoScope UndoScopeID1, True
Dim UndoScopeID2 As Long
UndoScopeID2 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormPinY).FormulaU = "618 mm"
Application.EndUndoScope UndoScopeID2, True
Dim UndoScopeID3 As Long
UndoScopeID3 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormWidth).FormulaU = "546 mm"
Application.EndUndoScope UndoScopeID3, True
Dim UndoScopeID4 As Long
UndoScopeID4 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormHeight).FormulaU = "1092 mm"
Application.EndUndoScope UndoScopeID4, True
Dim UndoScopeID5 As Long
UndoScopeID5 = Application.BeginUndoScope("Layer")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowLayerMem, visLayerMember).FormulaForceU = """2"""
Application.EndUndoScope UndoScopeID5, True
I created a macro but am unfamiliar to the syntax (I am however familiar
with Excel vba)
I thought it would be more efficient to use a with selection do this.... as
in Excel, is it not possible to use a layer rather than a number?
Thanks,
Is it possible to create a routine to import a image from the dialog, that
will:
change the dimensions (x pos, y pos, image width, image height)
Set layer.
Dim UndoScopeID1 As Long
UndoScopeID1 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormPinX).FormulaU = "421 mm"
Application.EndUndoScope UndoScopeID1, True
Dim UndoScopeID2 As Long
UndoScopeID2 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormPinY).FormulaU = "618 mm"
Application.EndUndoScope UndoScopeID2, True
Dim UndoScopeID3 As Long
UndoScopeID3 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormWidth).FormulaU = "546 mm"
Application.EndUndoScope UndoScopeID3, True
Dim UndoScopeID4 As Long
UndoScopeID4 = Application.BeginUndoScope("Size & Position 2-D")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowXFormOut, visXFormHeight).FormulaU = "1092 mm"
Application.EndUndoScope UndoScopeID4, True
Dim UndoScopeID5 As Long
UndoScopeID5 = Application.BeginUndoScope("Layer")
Application.ActiveWindow.Page.Shapes.ItemFromID(12).CellsSRC(visSectionObject,
visRowLayerMem, visLayerMember).FormulaForceU = """2"""
Application.EndUndoScope UndoScopeID5, True
I created a macro but am unfamiliar to the syntax (I am however familiar
with Excel vba)
I thought it would be more efficient to use a with selection do this.... as
in Excel, is it not possible to use a layer rather than a number?
Thanks,