Assign a macro

L

lb

Hi all,

I try to assign a same macro to some shapes of a windows.

How can I change ItemFromID(x) by the Item I've selected?

Set vsoShape1 = Application.ActiveWindow.Page.Shapes.ItemFromID(2)

Thanks in advance
 
P

Paul Herber

Hi all,

I try to assign a same macro to some shapes of a windows.

How can I change ItemFromID(x) by the Item I've selected?

Set vsoShape1 = Application.ActiveWindow.Page.Shapes.ItemFromID(2)

Set vsoShape1 = Application.ActiveWindow.Selection.Item[1]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top