다음 행이 없을 때까지 행 데이터를 다음 행으로 복사하는 코드를 작성하고 있습니다. 빈. 행 1의 모든 것이 헤더라고 가정합니다.EXCEL VBA - 비어 있지 않은 경우 행의 셀을 순환하여 다음 행이 비어 있지 않을 때까지 셀 값을 다른 행에 복사하십시오.
데이터 같다 : 다음 행이 비어 있지 때까지
A2 ClientA B2 Product1 C2 Price D2 Quantity E2 Cost
A3 B3 C3 Price D3 Quantity E3 Cost
A4 B4 C4 Price D4 Quantity E4 Cost
A5 ClientB B5 Product2 C5 Price D5 Quantity E5 Cost
A6 B6 C6 Price D6 Quantity E6 Cost
A7 ClientC B7 Product3 C7 Price D7 Quantity E7 Cost
A8 B8 C8 Price D8 Quantity E8 Cost
A9 B9 C9 Price D9 Quantity E9 Cost
는 A3와 A4가 제품으로 채울 ClientA 및 B3 및 B4로 채울 것입니다.
비슷한 질문을 찾기 위해 검색했지만 어떻게 작성해야하는지 잘 모릅니다.
A2 ClientA B2 Product1 C2 Price D2 Quantity E2 Cost
A3 ClientA B3 Product1 C3 Price D3 Quantity E3 Cost
A4 ClientA B4 Product1 C4 Price D4 Quantity E4 Cost
A5 ClientB B5 Product2 C5 Price D5 Quantity E5 Cost
A6 ClientB B6 Product2 C6 Price D6 Quantity E6 Cost
A7 ClientC B7 Product3 C7 Price D7 Quantity E7 Cost
A8 ClientC B8 Product3 C8 Price D8 Quantity E8 Cost
A9 ClientC B9 Product3 C9 Price D9 Quantity E9 Cost
누구든지 VBA 코드가 될 것입니다 어떤 생각을 가지고 같은
EXCEL VBA - Loop through cells in a column, if not empty, print cell value into another column
최종 결과는 것입니까?
내가이 C 열 중 일부가 비어있는 경우에도 작동 발견, 들으 메이트 –