Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / April 2006

Tip: Looking for answers? Try searching our database.

Return a formula as text string to a cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sharon - 18 Apr 2006 16:51 GMT
Hi - I would be really grateful if anybody knows a function to return the
formula contained in one cell to another cell as a text string?

Thanks
Signature

Sharon

Gary''s Student - 18 Apr 2006 17:23 GMT
Try this tiny UDF:

Function textit(r As Range) As String
textit = Chr(39) & r.Formula
End Function

If A1 has a formula, then =textit(A1)  will display it
Signature

Gary''s Student

> Hi - I would be really grateful if anybody knows a function to return the
> formula contained in one cell to another cell as a text string?
>
> Thanks
Don Guillett - 18 Apr 2006 17:27 GMT
Put this in a REGULAR code module and then just type =stringit(c4)

Function stringit(x)
stringit = x.Formula
End Function

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

> Hi - I would be really grateful if anybody knows a function to return the
> formula contained in one cell to another cell as a text string?
>
> Thanks
Peo Sjoblom - 18 Apr 2006 17:32 GMT
There is no such beast but you can roll your own

http://www.mvps.org/dmcritchie/excel/formula.htm

Signature

Regards,

Peo Sjoblom

http://nwexcelsolutions.com

> Hi - I would be really grateful if anybody knows a function to return the
> formula contained in one cell to another cell as a text string?
>
> Thanks
Sharon - 18 Apr 2006 17:40 GMT
Thanks to y'all!!  Really hit the spot.
Signature

Sharon

> There is no such beast but you can roll your own
>
[quoted text clipped - 4 lines]
> >
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.