Hi all,
I have a userform that retreives data from a selected spreadsheet that has date values in columns A,B,F,G,K,L,P,Q,U,V as non contiguous data. I have a find that selects the maxVal date cell, then I want it to go to the first row in the column to get the header data along with the selected date (active cell) values for display on the userform. Using xlUp only takes me to the next populated cell up, do I need to do a loop to find the top header cell or is there an alternative?
The line of code I am having troule with is below,
I've been searching for quite a while and had no luck, seen lots of row macros but can't (or don't have the knowledge) change it to what I want.
Regards, Dave
I have a userform that retreives data from a selected spreadsheet that has date values in columns A,B,F,G,K,L,P,Q,U,V as non contiguous data. I have a find that selects the maxVal date cell, then I want it to go to the first row in the column to get the header data along with the selected date (active cell) values for display on the userform. Using xlUp only takes me to the next populated cell up, do I need to do a loop to find the top header cell or is there an alternative?
The line of code I am having troule with is below,
Code:
tb_LastEntry.Value = ActiveCell.End(xlUp).Value & " - " & ActiveCell.Value
Regards, Dave