Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub BorderRange()
With ActiveSheet la = .Cells.Find("*", Cells(Rows.Count, Columns.Count) _ , , , xlByRows, xlPrevious).Address ..Range("a1:" & la).Borders.LineStyle = xlContinuous End With End Sub On Jan 22, 7:25*am, Johnnyboy5 wrote: I would like a macro to automatically put a border around any cells in a sheet that has data in it (numbers or text) and cells with no data have no borders. thanks Johnnboy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format cells with borders | Excel Discussion (Misc queries) | |||
Add borders to certain cells using VBA | Excel Programming | |||
Borders around cells... | Excel Programming | |||
Borders around cells | Excel Programming | |||
HELP! Merge cells and borders.... | Excel Programming |