I assume you are talking Excel, Turn off Gridlines in Tools + Options
by unchecking the checkbox. Then use Format Cells + Borders for the
desired range of cells.
Same idea in PPT tables except there are no gridlines to turn off.
They are already Borders.
Brian Reilly, PowerPoint MVP