• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 59
  • 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 LissOlder than dirtCommented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Martin LissOlder than dirtCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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