Solved

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

Posted on 2016-07-20
7
33 Views
Last Modified: 2016-08-22
I inherited a worksheet where the gridlines are only suppressed in certain cells.  How do I restore them?
0
Comment
Question by:Bill Golden
7 Comments
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41722060
Do Some SomeRange.ClearFormats for all affected cells.
0
 
LVL 1

Author Comment

by:Bill Golden
ID: 41722066
Sorry, lost you with Some....
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 250 total points (awarded by participants)
ID: 41722068
Without VBA

Format the cells with No Fill
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 45

Accepted Solution

by:
Martin Liss earned 250 total points (awarded by participants)
ID: 41722072
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
 
LVL 17

Expert Comment

by:Roy_Cox
ID: 41722195
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
 
LVL 13

Expert Comment

by:frankhelk
ID: 41757585
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now