Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array formula to text
I have the following array formula:
{=QLink|Bars!'QQQQ,15,100,DTOHLCV,HEADERS,FILL'} and would like to be able to grab it as text so I can plug it into a macro and manipulate/replace some of its elements. For example, as it is now, it pulls in price data for the symbol, QQQQ, in 15 minutes per bar. In the macro, I would like to be able to change the symbol to SPY or any other symbol, and also change the time period too. I have tried a few things but have yet to figure out how to get the text of this array formula into a cell or into a macro so that I can manipulate it. My thanks in advance for any ideas! Cheers! Brad |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array formula to text
The Range object has several properties you should explo Formula,
FormulaR1C1, and FormulaArray -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... I have the following array formula: {=QLink|Bars!'QQQQ,15,100,DTOHLCV,HEADERS,FILL'} and would like to be able to grab it as text so I can plug it into a macro and manipulate/replace some of its elements. For example, as it is now, it pulls in price data for the symbol, QQQQ, in 15 minutes per bar. In the macro, I would like to be able to change the symbol to SPY or any other symbol, and also change the time period too. I have tried a few things but have yet to figure out how to get the text of this array formula into a cell or into a macro so that I can manipulate it. My thanks in advance for any ideas! Cheers! Brad |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array formula to text
How about: Application.Evaluate("QLink|Bars!'" & "SPY," & "15," "100,DTOHLCV,HEADERS,FILL'" -- david ----------------------------------------------------------------------- davidm's Profile: http://www.excelforum.com/member.php...fo&userid=2064 View this thread: http://www.excelforum.com/showthread.php?threadid=40080 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array formula to text
If I recollect correctly, evaluate doesn't work with external
references/links. -- Regards, Tom Ogilvy "davidm" wrote in message ... How about: Application.Evaluate("QLink|Bars!'" & "SPY," & "15," & "100,DTOHLCV,HEADERS,FILL'") -- davidm ------------------------------------------------------------------------ davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645 View this thread: http://www.excelforum.com/showthread...hreadid=400807 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell format for an array formula containing text | Excel Worksheet Functions | |||
Array formula based on text and dates.. | Excel Discussion (Misc queries) | |||
Array Formula Minimum Excluding Text | Excel Discussion (Misc queries) | |||
a text array formula | Excel Worksheet Functions | |||
Array Formula - using LEFT("text",4) in formula | Excel Worksheet Functions |