The information in this article applies to:
SUMMARY
The following Microsoft Visual Basic for Applications Sub procedure removes all styles in a Microsoft Excel workbook and then adds back the default styles you see in a new workbook. This macro may be helpful for removing extra styles added to a workbook infected by a macro virus. Q142117 XL: Summary of Methods to Recover Data from Corrupted Files MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspThe following macro removes the styles from the currently active workbook. If you type this code into a new workbook, please make sure to activate the workbook from which you want to reset the styles before running the macro.
REFERENCESFor additional information about how to identify and remove the PLDT/CAR/SGV macro viruses, click the article number below to view the article in the Microsoft Knowledge Base: Q176807 XL: How to Identify and Remove PLDT/CAR/SGV Macro VirusesFor more information about using the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base: Q173707 OFF97: How to Run Sample Code from Knowledge Base Articles Additional query words: vba xl97 Laroux BINVCAR PLDT PLDT97 A-a SGV LOCAS Big_Dork Binv.xls Car.xls Pldt.xls A-a.xls Negs.xls Sgv.xls Vera.xls Personal.xls Person2.xls Sing.xls Auto_Open Check_Files Cecelia VIRUS-EDY NEG Promo Foxz WENDY
Keywords : kbdta kbdtacode OffVBA KbVBA |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |