Dear All,
Please I need help with a vba code that will enable me to coipy data from one worksheet to another.
1. The code should be able to determine the last row with data on a worksheet named 'EMP'.
2. Some of the data on that row should then be copied to certain specific cells in another worksheet named 'OUTPUT' - as follows:
a) Data in Column C (EMP sheet) copied to Cell C3 of (OUTPUT sheet)
b) Data in column B (EMP sheet) copied to Cell C13 of OUTPUT sheet.
c) Data in column A (EMP sheet) copied to Cell C18 of OUTPUT sheet.
d) Data in column H (EMP sheet) copied to Cell I15 of OUTPUT sheet.
e) Data in column F (EMP sheet) copied to Cell I17 of OUTPUT sheet
I would also need a 'PRINT' code that would enable me to Print out the OUTPUT sheet (the Print Area is A1:I26).
Please I need to add that the data in column C of EMP sheet is 'name of customer' which is picked up using Data Validation. As mentioned in (c) above, this data is copied to Cell C18 of OUTPUT sheet.
Although I do not have any problems with inserting a data validation drop-down list. I thought I should mention it in case there is a special tweaking of the code that will copy that particular data (from drop down list) to another worksheet.
Thank you in anticipation of your help.
Kenny
Please I need help with a vba code that will enable me to coipy data from one worksheet to another.
1. The code should be able to determine the last row with data on a worksheet named 'EMP'.
2. Some of the data on that row should then be copied to certain specific cells in another worksheet named 'OUTPUT' - as follows:
a) Data in Column C (EMP sheet) copied to Cell C3 of (OUTPUT sheet)
b) Data in column B (EMP sheet) copied to Cell C13 of OUTPUT sheet.
c) Data in column A (EMP sheet) copied to Cell C18 of OUTPUT sheet.
d) Data in column H (EMP sheet) copied to Cell I15 of OUTPUT sheet.
e) Data in column F (EMP sheet) copied to Cell I17 of OUTPUT sheet
I would also need a 'PRINT' code that would enable me to Print out the OUTPUT sheet (the Print Area is A1:I26).
Please I need to add that the data in column C of EMP sheet is 'name of customer' which is picked up using Data Validation. As mentioned in (c) above, this data is copied to Cell C18 of OUTPUT sheet.
Although I do not have any problems with inserting a data validation drop-down list. I thought I should mention it in case there is a special tweaking of the code that will copy that particular data (from drop down list) to another worksheet.
Thank you in anticipation of your help.
Kenny
Last edited: