Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
2003 & 2007
ActiveCell.Formula ='P:\DMB\[MyWorkBook.xls]Allocation '!$U$77*1000000- _ 'P:\DMB\[MyWorkBook.xls]Allocation '!$U$85 Current VBA code to isolate the first cell reference follows: BeginStr = Left(ActiveCell.Formula, InStr(ActiveCell.Formula, "!") + 1)) CellRefStr = InStr(BeginStr, ActiveCell.Formula, "*") ? CellRefStr yields $U$77 but only if the Operator is "*" 1) How best can I code "*" in the above InStr() so as to substitute it with ANY Operator? i.e., Operators = Array("/", "+", "-", "[*]", "", "<", "=") 2) How then to yield $U$85 ? Ultimately my End Game is to isolate the each Cell Reference (could be many!) after each WorkBook Worksheet reference in the ActiveCell.Formula. Because there could be many Cell References my initial approach above may well be inappropriate or the long way around the barn. Any help appreciated greatly! EagleOne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use InStr function in formula? | Excel Worksheet Functions | |||
is there an equal fxn for 'InStr' in excel. Not Find or Search | Excel Worksheet Functions | |||
Where is the Instr() function in Excel 2003? | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |