Hello I am a new user to VBA and need some help learning how to create a macro that searches for a value and then copies and pastes the data associated with that value on a new worksheet.
On worksheet 1 I have the bloomberg list of ticker data, which is consistently updating.
here is what the data looks like on worksheet1, each line is a new row:
C D E F G H
Ticker name
data data data data data
data data data data data
data data data data data
Ticker name
data data data data data
Ticker name
data data data data data
data data data data data
On worksheet 2 I want to be able to type in a ticker name and then click the macro. The ticker names are in all caps and three letter long (i.e. MMM)
1. So I want to type in a ticker name in worksheet2 cell B2
2. Then click my macro
3. The program search for the ticker name on worksheet1 column C
4. The program copies the data associated with the ticker name
5. The program pastes this data onto worksheet2 cell B4.
I understand this may be very complex, but if anyone has any ideas I would be extremely grateful. Thank you.
On worksheet 1 I have the bloomberg list of ticker data, which is consistently updating.
here is what the data looks like on worksheet1, each line is a new row:
C D E F G H
Ticker name
data data data data data
data data data data data
data data data data data
Ticker name
data data data data data
Ticker name
data data data data data
data data data data data
On worksheet 2 I want to be able to type in a ticker name and then click the macro. The ticker names are in all caps and three letter long (i.e. MMM)
1. So I want to type in a ticker name in worksheet2 cell B2
2. Then click my macro
3. The program search for the ticker name on worksheet1 column C
4. The program copies the data associated with the ticker name
5. The program pastes this data onto worksheet2 cell B4.
I understand this may be very complex, but if anyone has any ideas I would be extremely grateful. Thank you.