How to take screenshot in PiP mode using Take Screenshot activity.
I used Classic version of Take Screenshot and got an error. In Modern version I didnt get any error however the screenshot was not captured/saved in the destination folder.
Also, please let me know if there is any other alternative way like VBA / VB.net code to achieve the same ?
If you prefer VBA, you can use the following code:
Sub TakeScreenshot()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets(“Sheet1”)
ws.Range(“A1”).Select
Application.SendKeys “(%{1068})”
Application.SendKeys “{PRTSC}”
ws.Paste
ws.Shapes(ws.Shapes.Count).Name = “Screenshot”
ws.Shapes(“Screenshot”).Copy
ws.Pictures.Paste
ws.Shapes(“Screenshot”).Delete
End Sub
This VBA code takes a screenshot and pastes it into the specified Path, You can pass an argument for Path
Thanks
Vineet
.