+ Reply to Thread
Results 1 to 3 of 3

Macro to create box gridline where there is data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-17-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    52

    Smile Macro to create box gridline where there is data

    Hello all,
    I am looking to create black gridlines around all the cells that I have actual data in (without creating the gridlines on the blank cells).

    Is there a way to do this?

    Thanks!
    Bryan
    Last edited by tiger10012; 10-11-2011 at 03:58 PM.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Macro to create box gridline where there is data

    conditional formatting (see attached)
    =NOT(ISBLANK(A1))
    to set that up (started on cell A1)

    1) highlight cell A1
    2) go to Home tab ->Conditional Formatting
    3) select "new rule" --> use a formula option
    4) =NOT(ISBLANK(A1)) in the rule box
    5) click format button, set the borders you want
    6) when done click OK to exit and copy / past the formats to other cells.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 10-07-2011 at 02:37 PM.

  3. #3
    Registered User
    Join Date
    06-17-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Macro to create box gridline where there is data

    That did the trick! Thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1