With ActiveWorkbook. Worksheets (" Summary ")
Range (" A1: O28 ") CopyPicture
The Paste
For I=1 To. Shapes. Count
The Set displayed Shapes=. Shapes (I)
Displayed shapes. Copy
With. ChartObjects. Add (0, 0, displayed shapes. Width, displayed shapes. Height). The Chart
The Paste
.export "F: \ DP_E_Planning \ DP. JPG"
. The Parent. Delete
Want to delete the parent images, how to write in c #?
Excel. Chart chartPage=myChart. Chart;
ChartPage. Parent. The delete (); . Delete some not to come out, say dynamic expression, this operation will be resolved at run time,
CodePudding user response:
VBA than to use c #, I think,CodePudding user response: