Hi all,
I was wondering if there is a better way of tweaking of my below code to see if I can dynamically clear content in my active sheet leaving first ROW.
below is the code
Please Login or Register to view this content.
Hi all,
I was wondering if there is a better way of tweaking of my below code to see if I can dynamically clear content in my active sheet leaving first ROW.
below is the code
Please Login or Register to view this content.
Hello HudsonAndrew,
Try the following:-
I hope that this helps.Please Login or Register to view this content.
Cheerio,
vcoolio.
Hi Hudson Andrew,
Try:
NOTE: .ClearContents removes data only. .Clear removes data and all formatting.Please Login or Register to view this content.
Lewis
Last edited by AliGW; 01-02-2018 at 10:35 AM. Reason: Code tags!!!
Hi guys ..
thanks for the code its is working fine but need small changes , i am actually dealing with tables , above code only clearing the content i want everything to be cleared .
example : i want table content and its rows and its format to be cleared .
thanks !
Hudson
Hi,
This will clear the table range leaving only the headers intact and resize the table
Please Login or Register to view this content.
Don
Please remember to mark your thread 'Solved' when appropriate.
If you want to clear multiple tables in activesheet, except for header rows.
Please Login or Register to view this content.
?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
― Robert A. Heinlein
Hey guys , this is fantastic . its is working one more small tweek what if i wanted to keep first two rows and delete everything , how do i change the code to ?.
How do you mean?
Do you need first row of data kept + header?
Or just the 2 rows of data range with or without data?
yes, i need below .
Do you need first row of data kept + header?
i want one header and one row data rest everything needs to be cleared including formats .
Thanks ..
Something like below?
Please Login or Register to view this content.
This is really greate mate , it worked thanks .
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks