VBA : placing fence

Hi all,

To get more efficient job, i'll try to place fence for printing within automated VBA code.

So the idea is to get ID of rectangulare element, or coord of it's extrem points, and place fence upon it.

macro will do the rest of job, parametring and printing.

 

But i don't know how to place fence with Element ID or even it's possible !

 

Do someone know something about that ?

 

 

PS : My job requires me to use only the default model, even when my draw is on many pages ....