How to find this Excel Sheet To Image activity

how to find this activity in UiPath or which package to install to get this activity Excel Sheet To Image


There is a marketplace component you can download from there and load into UiPath from manage pckages

Or other option is

  1. In excel activities you will have excel to pdf
  2. And then if you install pdf activities you have pdf to image activity

You can use a combination


Hi @Gomathi_Ganesan

There isn’t a built-in activity in UiPath for converting an Excel sheet to an image. However, there are a few ways to achieve this using UiPath.

One option is to use the “Take Screenshot” activity to capture an image of the Excel sheet while it’s open on the screen. You can then save the screenshot as an image file using the “Save Image” activity.


1 Like

OKay thanks for the tip will try it

Hi @Anil_G i have installed excel range to image in windows legacy but i needed this in windows format so when i converted this and im getting error as activity is either missing or could not be loaded properly so may ask me why i needed to i convert this windows its because i wanted to use this acivity in existing windows project and i would use nupkg as activity for my windows project


  1. In windows compatibility this activity is not available…

So you need to go with the second option…of using excel to pdf and then pdf to image


1 Like


You can try VBA code for this

Save the below code in a txt file

Public Function TakeScreenshotTable(InputTarget As String) As String
' Take Screenshot Function

    arrayTarget = Split(InputTarget, ";")
    Dim i As Integer

On Error GoTo ErrorHandler

    For i = 0 To UBound(arrayTarget)
        Dim aChart As Chart, Rng As Range, Path As String, SheetName As String, SheetRange As String
        SheetRangeName = Split(arrayTarget(i), ",")
        SheetName = SheetRangeName(0)
	SheetRange = SheetRangeName(1)
	if Len(Path)=0 Then
        Path = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\" & "Capture" & i & ".jpg"
        End if 
	Set Rng = Sheets(SheetName).Range(SheetRange)
        Call Rng.CopyPicture(xlScreen, xlPicture)
        With Sheets.Add
            Set aChart = ActiveChart
            .Shapes.Item(1).Line.Visible = msoFalse
            .Shapes.Item(1).Width = Rng.Width
            .Shapes.Item(1).Height = Rng.Height
            aChart.Export (Path)
            Application.DisplayAlerts = False
            Application.DisplayAlerts = True
        End With

ErrorHandler: ' Error-handling routine.
if err.number<>"0" then
TakeScreenshotTable="Failed "& Err.Number
end if

End Function

Now use Invoke VBA activity and in properties EntryMethodName is TakeScreenshotTable
EntryMethodParameters are {SheetName, SheetRange, PathoftheJpgFileName.jpg}

Sheet Range → A1:F10

Hope this may help you



Couldnt find excel to pdf

Thank u so much @Srini84 will try and let u know


This is the activity


1 Like

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