Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Could somebody help me with some code to perform this.
I have a spread sheet with a varying amount of rows. It gets updated daily and i run some code to do various things. I need to go down to the last row with data in and then delete the rest. I think that when the spreed sheet is set up (by somebody else), they set the area as when i use some other code that i found to go to the bottom of data it finds more than what there is?! The code below is what i use to see how many rows. myRows = last On Error Resume Next last = ActiveSheet.Cells.Find(What:="", _ After:=[A1], _ Lookat:=xlPart, _ LookIn:=xlFormulas, _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious, _ MatchCase:=False).Row On Error GoTo 0 MsgBox last Les Stout *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with rest of forumla - Delete rows based on criteria | Excel Discussion (Misc queries) | |||
how to select the first character in a cell and delete the rest | Excel Worksheet Functions | |||
how to keep the first initial of a name &delete the rest in cell | Excel Discussion (Misc queries) | |||
Can I lock data into few cells in sheet and clear the rest | Excel Discussion (Misc queries) | |||
Select certain rows of sheet & delete the rest | Excel Programming |