엑셀 데이터 복사 붙여넣기

안녕하세요

예를들어 A라는 엑셀의 Sheet1 시트에서 B24:F80 범위를 복사하여
B라는 엑셀의 Shhet1 시트 D1열부터 붙여넣기 해야 하는경우

Read Range와 Write Range를 사용하여 값만 복사가 아닌
A라는 엑셀 B24:F80 범위가 표모양이라면 그 표 형태까지도 그대로 복사 붙여넣기를 하기를 원합니다.

이랬을경우에는 엑셀을 직접적으로 컨트롤 하는? 방식(send hotkey 단축키를 이용하여 범위선택 및 복사 붙여넣기 등)을 사용해야 될것 같은데 이랬을 경우에 안정성에 대해 의문이 들어서
이렇게 개발을 진행해도 될지

아니면 read range, write range로 해결되지 않는 프로세스의 경우에는 개발이 불가능하다고 해야할지 고민에 있습니다

Hello @rpa37

Perhaps you could use the activity Copy/Paste Range to copy the formatted table, and then use the Autofit Range activity to fit the column (and row) widths.

If you know the excact range that is being copied, you could define it as Excel.Sheet(“Sheet2”).Range(“D1:XX”) within the Autofit Range activity, to only autofit that specific part.

Source sheet:

Destination sheet:

Project:

Download files here:
Copy Paste Range.xaml (14.4 KB)
ExcelFile.xlsx (9.9 KB)

Regards
Soren

2 Likes

Hi @rpa37

You have to use two Use excel files activity. In first Use excel file activity give the path of the Excel A and change reference as ExcelA. Inside of it Insert second Use excel file activity and give the path of the Excel B and change the reference as ExcelB. Inside Second Use excel file activity insert the Copy/Paste range activity, give ExcelA range in Source and ExcelB range in Destination.

Check the below image for better understanding,

Hope it helps!!

1 Like

답변 감사합니다. 하지만 저는 같은 엑셀내 다른시트가 아닌 다른 엑셀파일에 데이터를 붙여넣고 싶습니다

답변 감사합니다. 오 이렇게 하면 될것 같아보이긴 하네요. 하지만 제가 사용하고 있는 패키지 버전들이 낮아서 알려주신 액티비티들 사용이 불가능합니다. UiPath.Excel.Activities 패키지 버전을 업데이트 하면 되는걸까요?

아래는 제가 사용하고 있는 패키지 버전입니다.
UiPath.Excel.Activities = 2.7.2
UiPath.System.Activities = 21.4.1
UiPath.UIAutomation.Activitie = 21.10.3
.
.
.

Yes you can update the package to the latest version in Manage Packages… @rpa37

Then you can see all these activities.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.