Copy Image from Excel and Save it using python
<p>I am trying to copy an image from an excel named Inputs_v3 and sheet named Inputs and save. The code is as follows`</p>

<pre><code>import win32com.client as win32       
from PIL import ImageGrab 
from xlrd import open_workbook   
import os

excel = win32.gencache.EnsureDispatch("Excel.Application")
wb = open_workbook('Inputs_v3.xlsm')
r = wb.sheet_by_name('Inputs')
r.CopyPicture()

im = ImageGrab.grabclipboard()
im.save('somefile.png','PNG')
</code></pre>

<p>`    The error is as follows    </p>

<pre><code>'Attribute error: 'Sheet' object has no attribute 'CopyPicture''
</code></pre>

<p>Please suggest where I am doing wrong.Thanks in advance</p>