Home > Software engineering >  In the vba. Parent. Delete written in c #?
In the vba. Parent. Delete written in c #?

Time:09-19

Vba in
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:

reference 1st floor zhao4zhong1 response:
VBA than to use c #, I think,




Need to need to write in c #, the work has been written out,
Ws. Range [r]. "A1: O28 CopyPicture ();
Ws. Paste ();
This ws. Paste (); Know is in what position paste paste?

CodePudding user response:

Ws the current position, I guess,
  •  Tags:  
  • VBA
  • Related