Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need macro to parse function into longhand

Has anyone parsed a function to change divides into horizontal bars to
make it look more readable? ie make it look more like MathCAD
functions, so simple errors like a misplaced bracket would be more
obvious.

I was thinking you could redraw the function in some free cells, but
it could be text only, as it is only a visual aid to document the
embedded equation.

Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Need macro to parse function into longhand

Steve,

Something like this ?...
'------------------------------------
'Replaces left and right parenthesis with brackets.
'In this example the formula in Cell C6 is displayed
'in Cell E6 with the replaced characters.
'Note:
'1. In the second substitution, '"strFormula" is replaced with "strAnswer".
'2. "'" is a single quote mark enclosed in " "

Sub MakeItUnderstandable()
Dim strAnswer As String
Dim strFormula As String

strFormula = Range("C6").Formula
strAnswer = "'" & Application.Substitute(strFormula, "(", "[")
strAnswer = Application.Substitute(strAnswer, ")", "]")
Range("E6").Value = strAnswer
End Sub
'---------------------------------------

Regards,
Jim Cone
San Francisco, USA



"steve" wrote in message
...
Has anyone parsed a function to change divides into horizontal bars to
make it look more readable? ie make it look more like MathCAD
functions, so simple errors like a misplaced bracket would be more
obvious.
I was thinking you could redraw the function in some free cells, but
it could be text only, as it is only a visual aid to document the
embedded equation.
Steve

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
Excel invoke REST service function with Xpath fn parse result! Rand0m1y Excel Worksheet Functions 0 June 4th 09 03:43 PM
How do I parse the cell reference function? Phil Excel Worksheet Functions 1 December 18th 08 12:43 PM
Parse from the Right PA Excel Worksheet Functions 6 June 11th 06 06:05 PM
Excel VBA Macro - parse data kb42 Excel Programming 2 July 9th 04 05:29 PM
Function Parse Problem Shatin Excel Programming 4 January 26th 04 06:39 PM


All times are GMT +1. The time now is 07:59 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"