?
Solved

Help with my Excel control

Posted on 2012-04-03
2
Medium Priority
?
196 Views
Last Modified: 2012-04-11
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
Comment
Question by:PhilippeRenaud
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 1500 total points
ID: 37801110
did u try:

AxspreadSheet.Columns.Delete(<col object to delete>)
0
 
LVL 1

Author Comment

by:PhilippeRenaud
ID: 37801157
but How can I know wich column the user right clicked and pressed delete ?
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question