I dont know what's in your textbox.. but
ActiveCell.Formula = "=Sum(b1:b10)" works for me.
Your routine must check that the string starts with "="
NOTE:
Personally I'd use FormulaLOCAL to interact between textbox and range.
as this will contain the language and separators the user expects.
--
keepITcool
|
www.XLsupport.com | keepITcool chello nl | amsterdam
Zone wrote in
roups.com
On my userform, I have a textbox that displays a formula from a cell.
I want to edit the formula in the textbox and, when I click OK, put
the text back into the cell as a formula.
activecell.formula = me.textbox1 puts it in as text. TIA, James