How to modify equation values by using excel cell values which are called in macros?

Hi All,

I want to change the equation values with the excel cell values which i am calling in macros. My problem is i am not able to assign the excel cell values to the equation, i can only give the dimension values/numeric values. I have made the partial code which i have posted below:

Any kind of help is appreciated.

Thanks,

Raj.

VBA macro:

Set EqMr = swcomp.GetEquationMgr()

k = EqMr.Equation(z - 1)

SetEq = Left\$(k, 16)

b = xlSheet.Cells(i + 25, 8)

If (SetEq = """Mold_Top_Plane+") Then

b = xlSheet.Cells(i + 25, 8)

EqMr.Equation(z - 1) = """Mold_Top_Plane+"" = "xlSheet.Cells(i+25,8)""

k = EqMr.Equation(z - 1)

End if

SolidworksApi macros