SeekerExcel11
Board Regular
- Joined
- Jan 26, 2014
- Messages
- 70
So I am creating a Year Month column using VBA that is based on another column ("Time") that has a list of dates.
The challenge is that I want to make the VBA code dynamic. This means that I want the code to search for the title of the column ("Time") and perform the following Excel function in the new "Year Month" column I am asking VBA to do:
=year("Time" column)&"-"&month("Time" column).
Currently struggling the most with this part.
I want VBA to do that for each row of the "Time" column (I want the # of rows to be dynamic as well).
Thanks!
The challenge is that I want to make the VBA code dynamic. This means that I want the code to search for the title of the column ("Time") and perform the following Excel function in the new "Year Month" column I am asking VBA to do:
=year("Time" column)&"-"&month("Time" column).
Currently struggling the most with this part.
I want VBA to do that for each row of the "Time" column (I want the # of rows to be dynamic as well).
Thanks!