I have a worksheet populated via a data-source which lists dates, vertically as well as horizontally.
- The dates vertically are items which
require action. - The dates horizontally are the coming working week dates.
At this time, all I want to do is select the corresponding column of the horizontal row based on whats found in the vertical row. I will try and do a simple diagram.
Date 3 2 1 4 5 6 7 8 9
1
3
9
In this example; I would like to select the Column of the horizontal row for 1 (if this were a new worksheet id expect it to be Column D. I also need to be able to do this by running a macro, i.e. I can’t be clicking in any cells initially.
Ok guys, thanks for the direction.
I was going to extend off this question. Basically what I ultimately wanted to do was plott a Gannt chart based of values fed into Excel from a datasource. I have jobs that need doing with predicted start and finish, so I open my sheet to populate the departments and dates in descending order via sql server and then run the code. It was taking a guy here 2 days to do this manually (for many departments)
Now obviously this is distinctive to me, but I found manipulating those dates a bit tricky. Ill post the entire code for the module just in case someone is looking to something similar to this at some point.
It produces this; (I have highlighted the date fields which I hide.)

Seriously, this took me all day so I sure hope it helps someone 😉
Pace
Code;