If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > copy and paste function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-04, 10:40
tjarvas tjarvas is offline
Registered User
 
Join Date: Mar 2004
Posts: 361
copy and paste function

Is it possible to paste a function in a cell and have it show the actual function instead of the result? I am using Excel 2000.
Reply With Quote
  #2 (permalink)  
Old 03-30-04, 10:53
Mowgli212001 Mowgli212001 is offline
Registered User
 
Join Date: Feb 2004
Location: Swindon, UK
Posts: 86
try this


Dim Val1

Val1 = Range("A1").FormulaArray
Range("B1").Value = Mid(Val1, 2, Len(Val1))

where A1 contains the formulae, & B1 is where you want the description
Reply With Quote
  #3 (permalink)  
Old 03-30-04, 12:03
tjarvas tjarvas is offline
Registered User
 
Join Date: Mar 2004
Posts: 361
is that a function? How would I type that into the cell. Sorry for the dumb question.
Reply With Quote
  #4 (permalink)  
Old 03-30-04, 13:29
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
He gave you a macro solution.

Ope the VB Editor by hitting ALT+F11. Goto Insert-->Module and paste this in the new module window that opens:
Code:
Sub ShowFormula()
    Dim Val1

    Val1 = Range("A1").FormulaArray
    Range("B1").Value = Mid(Val1, 2, Len(Val1))

End Sub
Then exit VBA (ALT+Q) and on your sheet goto Tools--Macro-->Run.

Any formula in Cell A1 will appear as text in cell B1.

Hope that helps,

Smitty
Reply With Quote
  #5 (permalink)  
Old 03-31-04, 08:53
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Or you can download this free add-in and it has a formula called FORMULATEXT (as well as many others).

http://longre.free.fr/english/index.html
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #6 (permalink)  
Old 04-01-04, 11:41
texasalynn texasalynn is offline
Registered User
 
Join Date: Jun 2002
Location: Houston, TX
Posts: 116
You can change the format to text and pasting

HTH
texasalynn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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