Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I currently use an old macro program (.xlm) to extract the closing prices
and their volumes for a list of 20 stock codes from the daily market price list which has thousands of stock codes. I am trying to re-write the same program using VBA which I am beginning to learn and therefore need your help. Let's say the two documents are as named below: MyList MarketList ABC AAB DEF ABC GHI CDEF JKL DEF . . . . . . XYZ ZZZZ The codes I need here a 1. To read "ABC" on MyList (don't need it to be displayed) then locate its position on the MarketList. 2. After reading "DEF" on MyList, if it then finds "CDEF", it should keep retrying until an exact match is found. 3. The program stops on reading the blank cell after "XYZ". What the program does is extract some specified data from MarketList to MyList. My thanks for any help or alternative suggestions. Tom |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try to use formula VLOOKUP or Auto filter but if you want to use VBA to make it done for specified things, it will be need some criterias you define. -- Regards, Halim "Tom" wrote: I currently use an old macro program (.xlm) to extract the closing prices and their volumes for a list of 20 stock codes from the daily market price list which has thousands of stock codes. I am trying to re-write the same program using VBA which I am beginning to learn and therefore need your help. Let's say the two documents are as named below: MyList MarketList ABC AAB DEF ABC GHI CDEF JKL DEF . . . . . . XYZ ZZZZ The codes I need here a 1. To read "ABC" on MyList (don't need it to be displayed) then locate its position on the MarketList. 2. After reading "DEF" on MyList, if it then finds "CDEF", it should keep retrying until an exact match is found. 3. The program stops on reading the blank cell after "XYZ". What the program does is extract some specified data from MarketList to MyList. My thanks for any help or alternative suggestions. Tom |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ZIP codes | Excel Discussion (Misc queries) | |||
VB Codes | Excel Discussion (Misc queries) | |||
codes, codes, codes... | Excel Discussion (Misc queries) | |||
ZIP CODES | Excel Worksheet Functions | |||
Am I asking to much from vb codes? | Excel Worksheet Functions |