


But since Microsoft did not bother to create such features for us, we'll figure something out on our own :) It would be really nice if we could simply right-click a graph and see something like " Save as image" or " Export to". The weak point of Excel charts is the lack of an option to save them as images or to export to another file. Charts (or graphs) is one of such options and creating a chart in Excel is as easy as selecting your data and clicking an appropriate chart icon.īut what has strengths usually has it weaknesses. Microsoft Excel is one of the most powerful tools for data analysis that provides plenty of features and special options to visualize your data. ) or export it to another file such as a Word document or PowerPoint presentation. Cannot call a method on a null-valued expression.In this article you will learn how to save your Excel chart as an image (.png. It all runs and copies the selection to clipboard (pastes as image if you CTRL+V) but produces an error still on the last two lines.

$Workbook=$($testfile) # Open XLS file in Excel $ercontrol = $false # Disable user interaction with Excel $excel = New-Object -COM "Excel.Application" # Create new COM object I've used the following code to do it looking at this link on poshcode: I've managed to get as far as selecting the range and copying it to the clipboard, and pasting it into another application would workīut is it possible to save the image directly from the clipboard as a jpg file? I've got an several Excel reports which are generated on a monthly basis and I need to export a selected range as an image.
