title: Python Export Excel Sheet Range as Image
body: <p>So it seems there's something weird going on with PIL ImageGrab.grabclipboard()</p>
  
  <pre><code>import win32com.client
  from PIL import ImageGrab
  
  o = win32com.client.Dispatch('Excel.Application')
  o.visible = False
  
  wb = o.Workbooks.Open(path)
  ws = wb.Worksheets['Global Dash']
  
  ws.Range(ws.Cells(1,1),ws.Cells(66,16)).CopyPicture()  
  img = ImageGrab.grabclipboard()
  imgFile = os.path.join(path_to_img,'test.jpg')
  img.save(imgFile)
  </code></pre>
  
  <p>When I run this, I notice that if I ctrl-V , the image is actually correctly saved on the clipboard, but my img variable returns None, meaning ImageGrab.grabclipboard() is somehow not working. Any ideas?</p>