Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Delete row in unselected worksheet

Status
Not open for further replies.

TorF

Programmer
Sep 30, 2002
83
FR
In excel 2000, I try to delete a row in an unselected worksheet.

Actually, i use the following vb code:
Rows(1).Select
Selection.Delete Shift:=xlUp
This deletes the first row of the active worksheet.

How can I do to supress the row in an unactive worksheet ?
(If possible without activating it)

Thanks
 
Or, just as another example (Rob's will work perfectly well)use the WITH construct
with sheets("MyInactive")
.rows(1).delete shift:=xlUp
end with


Rgds
~Geoff~
 
Ok that works fines.

I need to read an excel manual... :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top