• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 57
  • Last Modified:

Restoring Grid Lines in Certain Cells in Excel 2013 (Microsoft should learn to quit changing things just because you can!)

I inherited a worksheet where the gridlines are only suppressed in certain cells.  How do I restore them?
0
Bill Golden
Asked:
Bill Golden
2 Solutions
 
Martin LissRetired ProgrammerCommented:
Do Some SomeRange.ClearFormats for all affected cells.
0
 
Bill GoldenExecutive Managing MemberAuthor Commented:
Sorry, lost you with Some....
0
 
Saqib Husain, SyedEngineerCommented:
Without VBA

Format the cells with No Fill
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Martin LissRetired ProgrammerCommented:
OK, add this macro. Then select whatever cells need restoring and run the macro.
Sub ClearFormats()
Selection.ClearFormats
End Sub 

Open in new window


Just in case you need them, here are instructions on how to install and use the macro.

In Excel, Press Alt+F11 to open the Visual Basic Editor (VBE)

Right-click on your workbook name in the "Project-VBAProject" pane (at the top left corner of the editor window). If you don’t see an existing module then select Insert -> Module from the context menu. Otherwise just select the module.

Copy the macro (you can use the ‘Select All’ button if you like) and paste it into the right-hand pane of the VBA editor ("Module1" window)

Press Alt+F11 again to go back to Excel

Optionally, press Alt+F8 to open the "Macro" dialog window. Select the macro, click ‘Options…’,  hold down the Shift key and type the letter A (or any other letter) and click ‘OK’. Then anytime you want to run the macro press Ctrl+Shift+A.

When you close the workbook you will need to save it as an xlsm or xls file if it’s not already one of those.
0
 
Roy CoxGroup Finance ManagerCommented:
The cells may be merged. If they are you can right click on the range, choose Format Cells, then Alignment and uncheck Merge Cells
0
 
frankhelkCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now