Tj a
asked on
Use VBA to add borders to cells
I have a long list of data and I'd like to put an outside border around every 7 cells going down. How can I do this (preferably in VBA since I'm trying to learn it but a formula is also welcome)
ASKER
Thank you. Instead of just bordering every 7th cell, I want to border every 7 cells so I can have blocks of 7. See the attached file for an example.
borders.xlsx
borders.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I edited the above so that it starts at row 2 and won't stop at blank rows in the data.
ASKER
That's perfect. Thank you.
You're welcome and I'm glad I was able to help.
In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015, Experts-Exchange Top Expert Visual Basic Classic 2012 to 2014
In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015, Experts-Exchange Top Expert Visual Basic Classic 2012 to 2014
Open in new window