• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Help with my Excel control

Hello EE,

I have two AxspreadSheet control in my vb.net Form.

Lets say I write "Test" in cell A2 and "Hello World" in cell B2, and "Good Morning" on C2
When I click my button Save, I do a Loop and I write all the text in the other Spreadsheet at the same Cells.

By the way the other Spreadsheet is set to Visible False.

then, I could go right click on column C2 and Remove a column.

My problem is I dont know how to Remove the column programmatically in the other spreadsheet..I dont see any event

can you help ?
0
PhilippeRenaud
Asked:
PhilippeRenaud
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
did u try:

AxspreadSheet.Columns.Delete(<col object to delete>)
0
 
PhilippeRenaudAuthor Commented:
but How can I know wich column the user right clicked and pressed delete ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now