?
Solved

Add an excel row programmatically ?

Posted on 2012-03-22
2
Medium Priority
?
706 Views
Last Modified: 2012-03-22
Hello EE,

I have a OWC11  (AxSpreadsheet) in my vb.net form.

I have some data on Row 1

I would like to add a row before that current row so it goes to Row 2 and that Row 1 would be blank

I tried to search on internet, it must be something like myspreadsheet.ActiveSheet.Rows.Insert but I couldnt find any good answers working.


can you help?

Its just a simple row to add and I cant do it.. !
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 3

Accepted Solution

by:
Frank White earned 2000 total points
ID: 37752248
If this were directly in Excel, it would be as simple as:

ActiveWorkbook.ActiveSheet.Range("A1").EntireRow.Insert

I'm not sure if/how that would be different for within a VBNET form.
0
 
LVL 1

Author Comment

by:PhilippeRenaud
ID: 37752251
It worked !

thank you.
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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

777 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