npl77
asked on
Deleting a row in a worksheet using vb.net
I want to delete a certain row in an excel woorksheet.
This code does not work
dim sheet as worksheet
sheet.cells.rows(2).Delete ()
nor does this
sheet.Rows.Delete()
what am I doing wrong?
This code does not work
dim sheet as worksheet
sheet.cells.rows(2).Delete
nor does this
sheet.Rows.Delete()
what am I doing wrong?
show all the code u are using
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
here is the problem I gotta paste information into an excel sheet full of information. First I must clear the whole current sheet, then add a paste prtion to the sheet what happens is it pastes the information over the other information.
tempsheet.UsedRange.Select ()
excelapp.Selection.Copy()
'Trying to select the whole currentsheet and clear it then paste what i copied
currentsheet.Range(current sheet.Cell s(1, 1), currentsheet.Cells(64, 64)).Select()
'currentsheet.Select()
currentsheet.Paste(current sheet.Cell s(1, 1))
please help me fix this!
tempsheet.UsedRange.Select
excelapp.Selection.Copy()
'Trying to select the whole currentsheet and clear it then paste what i copied
currentsheet.Range(current
'currentsheet.Select()
currentsheet.Paste(current
please help me fix this!
When you a cell selected, and you don't clear the selection, the paste will go over the selected cell.
Bob
Bob