erasing a character in the
i am using the "activecell.formula" function
when i assign it to a variable i see the "=" sign how do i erase the = sign? Thank you |
erasing a character in the
On Mar 25, 3:12*pm, dstiefe wrote:
i am using the "activecell.formula" function when i assign it to a variable i see the "=" sign how do i erase the = sign? Thank you When you pass it to a variable (if the variable is a string) just say something like strFormula = Mid(Cstr(Activecell.Formula), 2,len(activecell.formula)-1) ... does that work? Chris |
erasing a character in the
Are you saying you want the "formula" stored in the variable, but without
its leading equal sign? If so, try this... YourVariable = Mid(ActiveCell.Formula, 2) Rick "dstiefe" wrote in message ... i am using the "activecell.formula" function when i assign it to a variable i see the "=" sign how do i erase the = sign? Thank you |
erasing a character in the
Dim myStr as string
mystr = mid(activecell.formula,2) The worksheet function =mid() needs more parts (the length). VBA's Mid doesn't need that. dstiefe wrote: i am using the "activecell.formula" function when i assign it to a variable i see the "=" sign how do i erase the = sign? Thank you -- Dave Peterson |
All times are GMT +1. The time now is 07:33 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com