martin_j_king
New Member
- Joined
- Jan 28, 2011
- Messages
- 20
Hi All,
Have a csv file which is a data dump from a db. Unfortunately, can't query the db direct because no sybase drivers.
certain columns are copied from the csv to the workbook which has summary reports.
Currently, my macro selects specific columns, or at the moment all the columns, because the column positions are changing constantly.
Is there a way which I can basically:
Search row 1, starting from A untill the last cell with data (no point searching blank) and if i find the word "total_p&l", select that column. I don't need it to store this info, just select the column.
I've been playing around with loops, if cell equals then select active column, if not move right on but i'm still not quite at the level to write full code without some help from the recorder.
thanks
Have a csv file which is a data dump from a db. Unfortunately, can't query the db direct because no sybase drivers.
certain columns are copied from the csv to the workbook which has summary reports.
Currently, my macro selects specific columns, or at the moment all the columns, because the column positions are changing constantly.
Is there a way which I can basically:
Search row 1, starting from A untill the last cell with data (no point searching blank) and if i find the word "total_p&l", select that column. I don't need it to store this info, just select the column.
I've been playing around with loops, if cell equals then select active column, if not move right on but i'm still not quite at the level to write full code without some help from the recorder.
thanks