Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a formula that takes a few parameters. For one of the string
parameters I want to concatenate values from cells in the spreadsheet directly in the formula. For example cell A1 = Bob cell B1 = Smith In another cell I call my formula =My_formula("Name", A1 & " " & B1). When I press enter on this, my formula is called and is passed two strings: param1 = Name and param2 = Bob Jones This is what I would expect, through Excel, but here is my problem: I have a button, that when pressed, finds cells that contain My_formula and gets the pertinent data out of them without executing each individually. It gathers all of the data to make a batch call to a data store. I am parsing the string My_formula("Name", A1 & " " & B1). I can parse it and get the two parameters: param1 = Name and param2 = A1 & " " B1 Excel did not process this, it is being read as a string, therefore the cell references are not evaluated. Without parsing this even more, is there a way to get Excel VBA to take something like A1 & " " B1 and evaluate the cell references so that it returns Bob Smith ? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a function that will evaluate a text string in a cell? | Excel Worksheet Functions | |||
UDF evaluate string output | Excel Programming | |||
Evaluate a Variable Name from a String | Excel Programming | |||
How to evaluate string? | Excel Programming | |||
Evaluate string as a formula | Excel Worksheet Functions |