Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Revealing formulas

Hello,
In Excel, if the user presses ctrl+` (the backwards
apostrophe) the sheet display values become the forumlas.
This is helpful for auditing. I need to show those actual
values in another part of the sheet -- for auditing
purposes. is there a function, or a way that I can
capture the text of a formula so I can display it elswhere?

thanks

keith
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Revealing formulas

Keith,

You can use a VBA function like the following:

Function GetFormula(Rng As Range) As String
GetFormula = Rng(1, 1).Formula
End Function

You can then call this function from a worksheet cell. E.g.,
=GetFormula(A1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Keith" wrote in message
...
Hello,
In Excel, if the user presses ctrl+` (the backwards
apostrophe) the sheet display values become the forumlas.
This is helpful for auditing. I need to show those actual
values in another part of the sheet -- for auditing
purposes. is there a function, or a way that I can
capture the text of a formula so I can display it elswhere?

thanks

keith



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Revealing formulas

Hi Chip,
Thanks very very much,
Keith
-----Original Message-----
Keith,

You can use a VBA function like the following:

Function GetFormula(Rng As Range) As String
GetFormula = Rng(1, 1).Formula
End Function

You can then call this function from a worksheet cell.

E.g.,
=GetFormula(A1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Keith" wrote in

message
...
Hello,
In Excel, if the user presses ctrl+` (the backwards
apostrophe) the sheet display values become the

forumlas.
This is helpful for auditing. I need to show those

actual
values in another part of the sheet -- for auditing
purposes. is there a function, or a way that I can
capture the text of a formula so I can display it

elswhere?

thanks

keith



.

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
revealing format of a cell James Irwin Excel Discussion (Misc queries) 4 October 28th 08 03:01 PM
Revealing the related pivot data Ken Excel Discussion (Misc queries) 2 May 9th 08 12:10 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
revealing the contents of a formula srinivasan Excel Worksheet Functions 10 July 5th 05 04:39 PM
Again-revealing the contents of formula srinivasan Excel Worksheet Functions 0 July 5th 05 06:25 AM


All times are GMT +1. The time now is 09:23 PM.

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

About Us

"It's about Microsoft Excel"