Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() Actually, I think I just figured it out. I added the 2nd line below to the code: x = rngSource.Rows.Count x = x + 1 y = rngSource.Columns.Count tmann Wrote: Thanks, bpeltzer. I tried your suggestion, and while it works, it introduces another problem: if I enter a list of stock symbols in col A beginning in A2, it doesn't pull a quote for the last symbol in the list. For instance, in the list: MSFT GME COH LCC it won't pull a quote for LCC. But then if I add another symbol below LCC, say WMT, it will pull a quote for LCC now but not WMT. I assume that while it's inserting the data in row 2, it's counting the number of rows required from row 1 and that's why it misses the last row??? Any thoughts??? Thanks! -- tmann ------------------------------------------------------------------------ tmann's Profile: http://www.excelforum.com/member.php...o&userid=29040 View this thread: http://www.excelforum.com/showthread...hreadid=487720 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Use Range Name in Macro | Excel Worksheet Functions | |||
Macro to copy range from Excel files in folder | Excel Discussion (Misc queries) | |||
Is it possible to set a variable range in a macro? | About this forum | |||
Macro - define cell range for a sum function | Excel Discussion (Misc queries) |