Thick line between columns

Graechel

New Member
Joined
Dec 22, 2020
Messages
5
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
I have a need to visibly separate Columns with a thick vertical line. Don't want any horizontal line other than normal gridline.
I have worked around by inserting blank columns with fill and narrowing the width but would prefer to maintain continuity
of column numbering rather than alternate numbering.
Sheet is relatively small, approximately 75 columns with 250 rows.

Do I draw a line, is there a way to only number alternate columns or am I stuck with my blank columns??
Am using 2010 and 2013.

Happy New Year to all you wonderful volunteers. You ARE appreciated.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If you can work with macros use this code at VBA (ALT + F11) and run it.
VBA Code:
Sub LeftBorder()
Dim cell As Range
Dim Lr As Long
Dim Lc As Long
Dim Rng As Range

Lr = Cells(Rows.Count, 1).End(xlUp).Row
Lc = Cells(1, Columns.Count).End(xlToLeft).Column
Set Rng = Range(Cells(1, 1), Cells(Lr, Lc))

For Each cell In Rng
If cell.Value <> "" Then
With cell.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
End With
End If
Next cell
End Sub
 
Upvote 0
Solution
Thanks Mabaadi.
I am self training as I go so need to reverse engineer to understand fully then apply to all my Sheet. (210 rows, A-BD Columns)
With family matters in way at moment I may be some time replying but I appreciate the information and assistance.
I will return, Thanks, Graechel
 
Upvote 0
Good Luck.
Lr is last rows and finding last row have data at used range.
LC is Also for finding Last Column.
 
Upvote 0
Maabadi,
Many thanks for your input.
It works like a dream and solved my problems as well as giving me an excellent advance with my learning.
Had to use my head a little as many Cells were blank but I managed in the end.
Again my thanks and I wish you the greatest of years to come,
Graeme
 
Upvote 0
You're Welcome & Thanks for Feedback.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top