CHANGE SELECTED VALUE

Hi,

I have created a macro which allows me to change a specific dimension within a block.

What I would like to do is change the same dimension in a selected block.

If someone could shed any light on my situation it would be greatly appreciated.

 I have attached the as stands.

SolidworksApi/macros