Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I hope someone can help with this. I think I am just missing a simple trick
I have created a Application_SheetBeforeDoubleClick event in which I would like my code to look at the formula in the cell being double-clicked, then extract the parameters being passed to the function. For example: Function in cell:- =Left(B1,4 I would like my code to return the parameters 'B1', and '4'. So far I am stripping off the unnecessary text to leave 'B1,4', and then using the SPLIT function to separate the parameters. This works fine for simple functions but for functions where the parameters may have commas in them themselves, this isn't going to work If anyone can help, I would me most grateful |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
After stripping off unnecessary text, replace any brackets
with double quotes, then use text to columns with double quotes as text delimiters (I'm not familiar with SPLIT function, I'm using Excel 97) In Excel 97, use Application.WorksheetFunction.Substitute function In Excel 2000 and later, use Replace function -----Original Message----- I hope someone can help with this. I think I am just missing a simple trick! I have created a Application_SheetBeforeDoubleClick event in which I would like my code to look at the formula in the cell being double-clicked, then extract the parameters being passed to the function. For example:- Function in cell:- =Left(B1,4) I would like my code to return the parameters 'B1', and '4'. So far I am stripping off the unnecessary text to leave 'B1,4', and then using the SPLIT function to separate the parameters. This works fine for simple functions but for functions where the parameters may have commas in them themselves, this isn't going to work. If anyone can help, I would me most grateful. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using IF function with Dates as parameters | Excel Worksheet Functions | |||
Passing parameters Cel Ref) to Sum function | Excel Discussion (Misc queries) | |||
MSNStockQuote Function Parameters | Excel Worksheet Functions | |||
Function Parameters | Setting up and Configuration of Excel | |||
Find size of array passed to user-defined function | Excel Programming |