Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Referencing A Formula As Text

Hi,

I am working on a problem to parse and manipulate parts of a formula i
one cell from another cell. In the second cell I will be carrying ou
some VBA & Logical functions. Is there any way I can get a formula i
one cell to reference a formula in another cell as text.

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Referencing A Formula As Text

Hi ABC;

you can go into VBA and use the Formula method to get the
string. Then you can do the manipulation and put the
desired formula in the cell you choose.

MyCurrentFormula = Range("A1").Formula

Might return =SUM(B3:C3)

Thanks,

Greg

-----Original Message-----
Hi,

I am working on a problem to parse and manipulate parts

of a formula in
one cell from another cell. In the second cell I will be

carrying out
some VBA & Logical functions. Is there any way I can get

a formula in
one cell to reference a formula in another cell as text.

Thanks,


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Referencing A Formula As Text

You need to use a user-defined-function

Function CellFunc(inCell As Range) As String
CellFunc = inCell.Formula
End Function

Used like

=CellFunc(A1)

HTH,
Bernie
MS Excel MVP

"abc " wrote in message
...
Hi,

I am working on a problem to parse and manipulate parts of a formula in
one cell from another cell. In the second cell I will be carrying out
some VBA & Logical functions. Is there any way I can get a formula in
one cell to reference a formula in another cell as text.

Thanks,


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a formula be "built" referencing text content from another cel Pradhan Excel Worksheet Functions 3 March 10th 10 10:56 PM
Referencing text in a cell in a formula jimbob Excel Discussion (Misc queries) 3 February 27th 06 11:12 PM
How to get the text format when referencing Vamshee Excel Discussion (Misc queries) 3 June 1st 05 04:05 PM
Referencing a formula (as text) Nelson Excel Discussion (Misc queries) 3 May 1st 05 01:44 AM
Referencing a formula (as text) Nelson Excel Worksheet Functions 3 May 1st 05 01:44 AM


All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"