Hi
is it possible to make clearcontent dynamic such that it clears the content below a certain word search?
Thing is i get alot of data sent my way every month and i've made a makro which transfers all that data unto another workbook which then do the calculation etc.
problem is though at the end of every table sent (size varies) is put in an additional row i would like to have cleared, plus everything below that row, as that is the old data.
with the code:
Dim Found As Range
Set Found = Worksheets("Result").Cells.Find(What:="(tom)", LookAt:=xlWhole, MatchCase:=True)
If Not Found Is Nothing Then
ActiveCell.EntireRow.ClearContents
End If
i find the word/string (tom) in the sheet and clears it but that will not delete every row below and since the tables varies i cannot simply add a range. Any suggestions?
is it possible to make clearcontent dynamic such that it clears the content below a certain word search?
Thing is i get alot of data sent my way every month and i've made a makro which transfers all that data unto another workbook which then do the calculation etc.
problem is though at the end of every table sent (size varies) is put in an additional row i would like to have cleared, plus everything below that row, as that is the old data.
with the code:
Dim Found As Range
Set Found = Worksheets("Result").Cells.Find(What:="(tom)", LookAt:=xlWhole, MatchCase:=True)
If Not Found Is Nothing Then
ActiveCell.EntireRow.ClearContents
End If
i find the word/string (tom) in the sheet and clears it but that will not delete every row below and since the tables varies i cannot simply add a range. Any suggestions?