Hi,
I'm pretty new to VBA and desperately need help! I have to loop through a column of data, select only the visible cells in that column, extract the left seven characters then paste them into an external workbook I've already created. This data will be pasted on sheet2 of the external workbook. I have already copied data from the master workbook, opened a new workbook and pasted that data on sheet1. Now I need to go back to the master workbook, sheet2, to the filtered column AD, copy only the first 7 digits in each cell and paste it onto sheet2 in the workbook I have already created.
I know how to loop, select.SpecialCells(xlCellTypeVisible), get only the left 7 characters in a cell, but I'm having difficulty piecing it all together into a loop that will do all of these and paste it into an external workbook on sheet 2. The filtered range will always be different, as it displays data for the individual unit that is selected so it can be anywhere from a 3 or 4 rows to 20.
Please help...I've been struggling with this for more than a week and I cannot find anything that does what I need to accomplish.
I'm pretty new to VBA and desperately need help! I have to loop through a column of data, select only the visible cells in that column, extract the left seven characters then paste them into an external workbook I've already created. This data will be pasted on sheet2 of the external workbook. I have already copied data from the master workbook, opened a new workbook and pasted that data on sheet1. Now I need to go back to the master workbook, sheet2, to the filtered column AD, copy only the first 7 digits in each cell and paste it onto sheet2 in the workbook I have already created.
I know how to loop, select.SpecialCells(xlCellTypeVisible), get only the left 7 characters in a cell, but I'm having difficulty piecing it all together into a loop that will do all of these and paste it into an external workbook on sheet 2. The filtered range will always be different, as it displays data for the individual unit that is selected so it can be anywhere from a 3 or 4 rows to 20.
Please help...I've been struggling with this for more than a week and I cannot find anything that does what I need to accomplish.