Iterate to solve area macro

I am looking for a macro or instructions on how to create amacro to increment a dimension and then check the surface areauntil the desired surface area is acheived. I ahve two areas that Ineed to make the same and right now I have to keep entering valuesand checking the areas until I get it right.

Thanks - Bob
SolidworksApi macros