Excel 2010 code that clears content of a cell on open
Closed
jamhome
Posts
1
Registration date
Saturday August 30, 2014
Status
Member
Last seen
August 31, 2014
-
Aug 31, 2014 at 09:10 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 9, 2014 at 11:34 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 9, 2014 at 11:34 AM
Related:
- Excel 2010 code that clears content of a cell on open
- Microsoft office 2010 free download - Download - Office suites
- Samsung keypad reset code - Guide
- Battery reset code - Guide
- Samsung volume increase code - Guide
- Microsoft publisher 2010 free download - Download - Publishing
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
552
Sep 9, 2014 at 11:34 AM
Sep 9, 2014 at 11:34 AM
Hi Jamhome,
Try the following code:
To implement, hit Alt+F11, locate "ThisWorkbook" on the left side of the newly opened window. Double click on it and paste the code in the big white field.
Best regards,
Trowa
Try the following code:
Private Sub Workbook_Open() Dim ws As Worksheet For Each ws In Worksheets Do ws.Select Cells.Find(What:="x", lookat:=xlWhole).ClearContents Loop Until Cells.Find(What:="x", lookat:=xlWhole) Is Nothing Next ws End Sub
To implement, hit Alt+F11, locate "ThisWorkbook" on the left side of the newly opened window. Double click on it and paste the code in the big white field.
Best regards,
Trowa