Hello,
I have a question I'm hoping someone can give me an answer to.
I have a worksheet with column headings. What i want to do is after selecting some values in a different column and clicking a command button, it finds the column with a specified "target string" and then inserts a value in that column based on the row my initial value is in. So for example (these are all variable values), lets say there are columns A-Z. My initial values are in column X in rows 10-15. The column I'm interested in is Column B with header "Assignment". I need VB code that will look for the header "Assignment", find that column, then allow the rest of my vb code to spit values into the cells in that column offsetted with the rows that I initially selected. So if the code finds the "Assignment" header in lets say column D - values should start getting spitted out in cells(10,4) -> cells(15,4).
Another challenge is that the initial field of values that I have selected, must be selected at all times because the rest of my vb code relies upon the ActiveCell.Selection property.
Currently, If i select my initial values and run the rest of my code, it spits out values in a static column by doing a cell.offset(x,x).value command. Essentially, i want this static column output to be dynamic where it could be a column anywhere in the sheet and doesnt have to be in a specific position based on the offset.
Any help would be GREATLY appreciated.
Thanks!
I have a question I'm hoping someone can give me an answer to.
I have a worksheet with column headings. What i want to do is after selecting some values in a different column and clicking a command button, it finds the column with a specified "target string" and then inserts a value in that column based on the row my initial value is in. So for example (these are all variable values), lets say there are columns A-Z. My initial values are in column X in rows 10-15. The column I'm interested in is Column B with header "Assignment". I need VB code that will look for the header "Assignment", find that column, then allow the rest of my vb code to spit values into the cells in that column offsetted with the rows that I initially selected. So if the code finds the "Assignment" header in lets say column D - values should start getting spitted out in cells(10,4) -> cells(15,4).
Another challenge is that the initial field of values that I have selected, must be selected at all times because the rest of my vb code relies upon the ActiveCell.Selection property.
Currently, If i select my initial values and run the rest of my code, it spits out values in a static column by doing a cell.offset(x,x).value command. Essentially, i want this static column output to be dynamic where it could be a column anywhere in the sheet and doesnt have to be in a specific position based on the offset.
Any help would be GREATLY appreciated.
Thanks!