Question: Extracting coefficients of a variable in an expression

I wish to extract the coefficients associated with a particular variable. I have assigned the results of a symbolic solve of a system of equations (sol) using assign(sol): One of the assigned variables in (sol) is ROLL and the symbolic solution is of the form ROLL; 200*a*b^2*VAR1 + 3000*b*VAR2 + 1500*cos(c)*d*VAR1 . . . (the actual expression is hundreds of line long and each VAR is randomly distributed in the expression) How do I isolate the coefficients associated with a specific VAR eg for VAR1 I want to be able to make the assignment coefVAR1:=(200*a*b^2)+(1500*cos(c)*d) Any guidance greatly appreciated
Please Wait...