+ Reply to Thread
Results 1 to 3 of 3

Creating Boarder around every n'th cell

  1. #1
    Registered User
    Join Date
    05-29-2014
    Posts
    5

    Creating Boarder around every n'th cell

    I'm trying to create a border around every 6th and 7th cell across 352 columns, and down 50 rows.

    I'm not sure where to begin any help would be appreciated.

    Here is an example of what I'm looking for (X is blank cell, B is cell with border):

    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB
    XXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBBXXXXXBB

    The border is a diagonal border but I'm certain I can adjust the code to get the look I need,
    I'm just not sure If I need to loop through columns and then rows or how to get there.

    Thanks again for everyone, you guys are incredibly helpful.

  2. #2
    Forum Guru Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,249

    Re: Creating Boarder around every n'th cell

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Creating Boarder around every n'th cell

    If you are just looking to put a border around cells that have values, and ignore empty cells, you can have code that specifically works on those cells.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to Place a Cell Boarder Over a Shape?
    By garrett.grillo in forum Excel General
    Replies: 2
    Last Post: 02-26-2014, 05:17 AM
  2. Replies: 0
    Last Post: 04-27-2012, 04:22 PM
  3. [SOLVED] Printing a sheet with a line boarder - like MS Word will do.
    By cpaexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 09:36 AM
  4. If cell is not empty draw full boarder
    By Vlad999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2007, 02:23 AM
  5. [SOLVED] Change Boarder from VB .net
    By Addam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2006, 06:25 PM

Tags for this Thread

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