Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Delete a Row

$
0
0
Ok... The following works. I found this in a code snippet in another thread.
                    Excel.Range range = workSheet.Range("A" + currentRow);
                    range.EntireRow.Delete(Excel.Enums.XlDeleteShiftDirection.xlShiftUp);
I couldn't find this initially because Intellisense is not showing the EntireRow property. If I type it in directly it works????

I am using Visual Studio 2015 and have had a few issues using NetOffice classes not showing correctly with Intellisense. Anyone else having this issue?

Viewing all articles
Browse latest Browse all 1741

Trending Articles