I have a list of cells - when I filter on emp_type for Manager in column C
I can select all of the cells in column B then click on the "green dot" in the green select box and drag it (Fill_Left) over to column A - copying the filtered text to column A
How can this be accomplished in VBA?
other info
excel 2013
rows of data can be any length
Thank you for the help this forum provides
beginning table
[TABLE="class: grid, width: 445"]
<tbody>[TR]
[TD]Mgr
[/TD]
[TD]Employee
[/TD]
[TD]Pay Code
[/TD]
[TD]Emp_Id
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Christopher
[/TD]
[TD]Employee
[/TD]
[TD]046
[/TD]
[/TR]
[TR]
[TD] Tom
[/TD]
[TD] Travis
[/TD]
[TD]Employee
[/TD]
[TD]146
[/TD]
[/TR]
[TR]
[TD] Nikhil
[/TD]
[TD] Joel
[/TD]
[TD]Manager
[/TD]
[TD]244
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Robbie
[/TD]
[TD]Employee
[/TD]
[TD]175
[/TD]
[/TR]
[TR]
[TD] Christopher
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Christopher
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Ronald
[/TD]
[TD]Employee
[/TD]
[TD]795
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Harry
[/TD]
[TD]Employee
[/TD]
[TD]773
[/TD]
[/TR]
[TR]
[TD] Mark
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Mark
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Kevin
[/TD]
[TD] Justin
[/TD]
[TD]Employee
[/TD]
[TD]127
[/TD]
[/TR]
</tbody>[/TABLE]
Desired output
only the Employee name was copied to Manager name where filtered (Manager) data was selected
[TABLE="class: grid, width: 445"]
<tbody>[TR]
[TD]Mgr
[/TD]
[TD]Employee
[/TD]
[TD]Pay Code
[/TD]
[TD]Emp_Id
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] William
[/TD]
[TD]Employee
[/TD]
[TD]150
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Christopher
[/TD]
[TD]Employee
[/TD]
[TD]046
[/TD]
[/TR]
[TR]
[TD] Tom
[/TD]
[TD] Travis
[/TD]
[TD]Employee
[/TD]
[TD]146
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Joel
[/TD]
[TD]Manager
[/TD]
[TD]244
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Robbie
[/TD]
[TD]Employee
[/TD]
[TD]175
[/TD]
[/TR]
[TR]
[TD] Stanton
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Stanton
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Ronald
[/TD]
[TD]Employee
[/TD]
[TD]795
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Harry
[/TD]
[TD]Employee
[/TD]
[TD]773
[/TD]
[/TR]
[TR]
[TD] Edward
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Edward
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Kevin
[/TD]
[TD] Justin
[/TD]
[TD]Employee
[/TD]
[TD]127
[/TD]
[/TR]
</tbody>[/TABLE]
I can select all of the cells in column B then click on the "green dot" in the green select box and drag it (Fill_Left) over to column A - copying the filtered text to column A
How can this be accomplished in VBA?
other info
excel 2013
rows of data can be any length
Thank you for the help this forum provides
beginning table
[TABLE="class: grid, width: 445"]
<tbody>[TR]
[TD]Mgr
[/TD]
[TD]Employee
[/TD]
[TD]Pay Code
[/TD]
[TD]Emp_Id
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Christopher
[/TD]
[TD]Employee
[/TD]
[TD]046
[/TD]
[/TR]
[TR]
[TD] Tom
[/TD]
[TD] Travis
[/TD]
[TD]Employee
[/TD]
[TD]146
[/TD]
[/TR]
[TR]
[TD] Nikhil
[/TD]
[TD] Joel
[/TD]
[TD]Manager
[/TD]
[TD]244
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Robbie
[/TD]
[TD]Employee
[/TD]
[TD]175
[/TD]
[/TR]
[TR]
[TD] Christopher
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Christopher
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Ronald
[/TD]
[TD]Employee
[/TD]
[TD]795
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Harry
[/TD]
[TD]Employee
[/TD]
[TD]773
[/TD]
[/TR]
[TR]
[TD] Mark
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Mark
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Kevin
[/TD]
[TD] Justin
[/TD]
[TD]Employee
[/TD]
[TD]127
[/TD]
[/TR]
</tbody>[/TABLE]
Desired output
only the Employee name was copied to Manager name where filtered (Manager) data was selected
[TABLE="class: grid, width: 445"]
<tbody>[TR]
[TD]Mgr
[/TD]
[TD]Employee
[/TD]
[TD]Pay Code
[/TD]
[TD]Emp_Id
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] William
[/TD]
[TD]Employee
[/TD]
[TD]150
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Christopher
[/TD]
[TD]Employee
[/TD]
[TD]046
[/TD]
[/TR]
[TR]
[TD] Tom
[/TD]
[TD] Travis
[/TD]
[TD]Employee
[/TD]
[TD]146
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Joel
[/TD]
[TD]Manager
[/TD]
[TD]244
[/TD]
[/TR]
[TR]
[TD] Joel
[/TD]
[TD] Robbie
[/TD]
[TD]Employee
[/TD]
[TD]175
[/TD]
[/TR]
[TR]
[TD] Stanton
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Stanton
[/TD]
[TD] Stanton
[/TD]
[TD]Manager
[/TD]
[TD]712
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Ronald
[/TD]
[TD]Employee
[/TD]
[TD]795
[/TD]
[/TR]
[TR]
[TD] Michael
[/TD]
[TD] Harry
[/TD]
[TD]Employee
[/TD]
[TD]773
[/TD]
[/TR]
[TR]
[TD] Edward
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Edward
[/TD]
[TD] Edward
[/TD]
[TD]Manager
[/TD]
[TD]161
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Tan
[/TD]
[TD] Paul
[/TD]
[TD]Employee
[/TD]
[TD]815
[/TD]
[/TR]
[TR]
[TD] Kevin
[/TD]
[TD] Justin
[/TD]
[TD]Employee
[/TD]
[TD]127
[/TD]
[/TR]
</tbody>[/TABLE]