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
35 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 46

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 46

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 14

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

914 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

13 Experts available now in Live!

Get 1:1 Help Now