how could this be achieved please
how could this be achieved please
Select the range of the worksheet that isn't the table and use the .clearcontents command.
Try this: Run the macro recorder, select the range you want cleared and press DELETE. Then stop the macro recorder and look at the code it's written for you.
Hi wayneg,
There is no magic elixir function for your question. Try code like the following which worked for me:
Lewis![]()
Please Login or Register to view this content.
Long, but does the trick. Just change the reference in red to reference the table you want to keep.
![]()
Please Login or Register to view this content.
Blimey, I'm much lazier than you two. I'd just select the 4 blocks around the table and clear them, all done in 4 lines of code. eg.
![]()
Please Login or Register to view this content.
whilst away, i looked into moving the table to another sheet, clearing the contents then moving the table back. the issue i have is that the table size isnt fixed so trying to have a set range doesnt work
Last edited by wayneg; 08-06-2015 at 08:45 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks