Hi All,
I have 2 different file and my goal is to copy data from 1 workbook from specific range and paste as value in other workbook in specific range. Normal copy paste I did by recording macro but unable to apply logic to solve with multiple conditions.
looking here for support. I have uploaded the sample file for example purpose in this link : https://1drv.ms/x/s!Ap80Ku6M2Tw5gUqvEuWR3VBUcMMG. Also highlighed ranges in yellow color which needs to copy and paste.
Conditions :-
1) In workbook 1 contains Sheet name "Table 1" from which I need to copy data.
2) WB 2 contains sheet name "Lista de Produtos_Instalar" in which I have to paste data.
3) Data Should be copy from next row as soon as cell contains "NOME" in column A.
4) Last range to copy data is one row above till column name Data as soon as cell contains "Gabinete "+Any number.
and if there is no "Gabinete" mentioned till last row of workbook 1 than just copy data till last row. 5) Now go to Workbook to sheet name "Lista de Produtos_Instalar" and search for work contains "NOME" in column A and paste the copied data , 1 row below the "NOME".
Note : Here not more issue , we need to paste in visible cells, any rows can be hidden. Also columns in where we are pasting data having merged cells.
6) Now again we need to repeat same copy paste steps if there is another cells contains word "NOME" in column A in workbook 1 and follow above steps 3 to 5 similarly.
Not sure I am able to explain it properly but I Hope by seeing rows highlighted in yellow in above given link will easily understandable.
Regards,
Rajender
I have 2 different file and my goal is to copy data from 1 workbook from specific range and paste as value in other workbook in specific range. Normal copy paste I did by recording macro but unable to apply logic to solve with multiple conditions.
looking here for support. I have uploaded the sample file for example purpose in this link : https://1drv.ms/x/s!Ap80Ku6M2Tw5gUqvEuWR3VBUcMMG. Also highlighed ranges in yellow color which needs to copy and paste.
Conditions :-
1) In workbook 1 contains Sheet name "Table 1" from which I need to copy data.
2) WB 2 contains sheet name "Lista de Produtos_Instalar" in which I have to paste data.
3) Data Should be copy from next row as soon as cell contains "NOME" in column A.
4) Last range to copy data is one row above till column name Data as soon as cell contains "Gabinete "+Any number.
and if there is no "Gabinete" mentioned till last row of workbook 1 than just copy data till last row. 5) Now go to Workbook to sheet name "Lista de Produtos_Instalar" and search for work contains "NOME" in column A and paste the copied data , 1 row below the "NOME".
Note : Here not more issue , we need to paste in visible cells, any rows can be hidden. Also columns in where we are pasting data having merged cells.
6) Now again we need to repeat same copy paste steps if there is another cells contains word "NOME" in column A in workbook 1 and follow above steps 3 to 5 similarly.
Not sure I am able to explain it properly but I Hope by seeing rows highlighted in yellow in above given link will easily understandable.
Regards,
Rajender