Toolbar button for Grid Lines

Discuss the spreadsheet application
Post Reply
dreamplay
Posts: 2
Joined: Thu Jan 31, 2008 2:59 pm

Toolbar button for Grid Lines

Post by dreamplay »

Hi,

I just want to a button on my toolbar for turning grid lines on/off, and can't seem to locate it.
I see a button called "Display Grid" but that's not it.

Can anyone help?
Thanks in advance.
User avatar
kingfisher
Volunteer
Posts: 2123
Joined: Tue Nov 20, 2007 10:53 am

Re: Toolbar button for Grid Lines

Post by kingfisher »

I don't have it either. There may be no provision for a shortcut. If that's the case, you will need a simple script to which you can assign a button.

P.S. This script will do what you want. Look for help on installing 'macros'.

Code: Select all

Sub gridlines
' toggles the grid lines between show and hide
If ThisComponent.SupportsService( "com.sun.star.sheet.SpreadsheetDocument" ) Then
ThisComponent.CurrentController.ShowGrid = NOT ThisComponent.CurrentController.ShowGrid
End If
End Sub
Apache OpenOffice 4.1.9 on Linux
dreamplay
Posts: 2
Joined: Thu Jan 31, 2008 2:59 pm

Re: Toolbar button for Grid Lines

Post by dreamplay »

Thanks, kingfisher
I'll check out the help section on how to install the macro.
User avatar
kingfisher
Volunteer
Posts: 2123
Joined: Tue Nov 20, 2007 10:53 am

Re: Toolbar button for Grid Lines

Post by kingfisher »

This thread may help: How to install a macro found here
Apache OpenOffice 4.1.9 on Linux
Post Reply