remove all format(s) on a sheet
On Sun, 15 Nov 2009 16:31:21 +0100, "Vsn" <vsn_hotmail_kom wrote:
Hi all,
Is the a way in with VBA code to remove ALL formats from a sheet, including
lines, width, text bold, etc., and set all back to default.
This would be very helpfull to me.
Thanks,
Ludovic
Try this:
1) Insert a new worksheet into the workbook.
2) Select everything on the new worksheet (CTRL+A)
3) Copy everything from the new worksheet (CTRL+C)
4) Select everything on the worksheet you want to clean up (CTRL+A).
5) Paste Special and select Formats in the Paste section.
This will reset the formatting to the same as for a new worksheet.
You can now delete the worksheet from step 1.
Hope this helps / Lars-Åke
|