LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default user input and concatenate

I have the following macro where I:

1) select a sheet (Sheets("Open 135").Select)
2) jump to a cell I know falls within the array formula area
(Range("J85").Select)
3) modify the array formula (Selection.FormulaArray =
"=QLink|Bars!'TXN,135,100,DTOHLCV,HEADERS,FILL ')
4) then, I am jumping to a second sheet and modifying the array formula
again...

My question regards my needing to add code to input a particular portion of
the array formula using the INPUTBOX Function
so that I concatenate my user provided input within the code in 3) above.

I would like to have Selection.FormulaArray = followed by:

"=QLink|Bars!'

then my symbol input (TXN in the above example)

then finish up with

,135,100,DTOHLCV,HEADERS,FILL'"

to complete the line of code.

So, code for an INPUTBOX sticking the user-provided input between the two
pieces of text above.

If I do this correctly, I may substitute any number of symbols for stocks or
indices in place of the TXN.

Here's the current macro below... my thanks in advance for any help here.

Cheers! Brad

Sub Macro135()
'
' Macro135 Macro
' Macro recorded 3/21/2005 by BR
'

'
Sheets("Open 135").Select
Range("J85").Select
Selection.FormulaArray =
"=QLink|Bars!'TXN,135,100,DTOHLCV,HEADERS,FILL '"
Range("J106").Select
Sheets("Open Day").Select
Range("F86").Select
Selection.FormulaArray = "=QLink|Bars!'TXN,D,100,DTOHLCV,HEADERS,FILL'"
Range("I105").Select
End Sub


 
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
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
How to accept input and then populate/concatenate this with other Pank New Users to Excel 4 February 27th 07 03:38 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM
Get User Input Gord Dibben[_3_] Excel Programming 0 July 23rd 03 10:48 PM


All times are GMT +1. The time now is 06:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"