#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default grid lines

How do I set the color of the grid lines on a worksheet to a specific color?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default grid lines

toolbar - Tools, Options, select View tab, make sure Gridlines is
checked, select the color you want.

if you meant via macro, i don't know.

hth
susan


On Jul 1, 2:58*pm, ranswrt wrote:
How do I set the color of the grid lines on a worksheet to a specific color?
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default grid lines

i looked in the object browser in visual basic & found that you can do
it via macro..........

Property GridlineColorIndex As XlColorIndex
Member of Excel.Window

but i don't know exactly how to word it in the macro. just thought
i'd throw this in for more help.
susan


On Jul 1, 3:12*pm, Susan wrote:
toolbar - Tools, Options, select View tab, make sure Gridlines is
checked, select the color you want.

if you meant via macro, i don't know.

hth
susan

On Jul 1, 2:58*pm, ranswrt wrote:



How do I set the color of the grid lines on a worksheet to a specific color?
Thanks- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default grid lines

Hi Susan,
You were almost there, all you had to do was record a macro :-)

With ActiveWindow
.DisplayGridlines = True
.GridlineColorIndex = 55
End With

It's worth noting this is one of the few things that requires the sheet to
be active and in code might require both the workbook and the worksheet to
be programmatically activated.

Regards,
Peter T

"Susan" wrote in message
...
i looked in the object browser in visual basic & found that you can do
it via macro..........

Property GridlineColorIndex As XlColorIndex
Member of Excel.Window

but i don't know exactly how to word it in the macro. just thought
i'd throw this in for more help.
susan


On Jul 1, 3:12 pm, Susan wrote:
toolbar - Tools, Options, select View tab, make sure Gridlines is
checked, select the color you want.

if you meant via macro, i don't know.

hth
susan

On Jul 1, 2:58 pm, ranswrt wrote:



How do I set the color of the grid lines on a worksheet to a specific

color?
Thanks- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default grid lines

that's me, always trying to do things the hard way! i didn't even
think of recording a macro, i was so busy trying to write the
code..... thanks!
(still don't even know what the OP wanted, macro or not.)
susan


On Jul 1, 4:12*pm, "Peter T" <peter_t@discussions wrote:
Hi Susan,
You were almost there, all you had to do was record a macro :-)

* * With ActiveWindow
* * * * .DisplayGridlines = True
* * * * .GridlineColorIndex = 55
* * End With

It's worth noting this is one of the few things that requires the sheet to
be active and in code might require both the workbook and the worksheet to
be programmatically activated.

Regards,
Peter T

"Susan" wrote in message

...
i looked in the object browser in visual basic & found that you can do
it via macro..........

Property GridlineColorIndex As XlColorIndex
* * Member of Excel.Window

but i don't know exactly how to word it in the macro. *just thought
i'd throw this in for more help.
susan

On Jul 1, 3:12 pm, Susan wrote:



toolbar - Tools, Options, select View tab, make sure Gridlines is
checked, select the color you want.


if you meant via macro, i don't know.


hth
susan


On Jul 1, 2:58 pm, ranswrt wrote:


How do I set the color of the grid lines on a worksheet to a specific

color?
Thanks- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid Lines Julie Excel Discussion (Misc queries) 4 March 6th 07 06:41 PM
Grid lines in Excel not showing.Have tools,options,view/grid cked bajlearning Excel Discussion (Misc queries) 6 January 28th 07 02:00 AM
Grid Lines DNA Excel Discussion (Misc queries) 4 July 10th 06 08:56 AM
printing grid lines when grid lines is checked fergos Setting up and Configuration of Excel 1 October 4th 05 02:55 AM
grid lines Moonraker Setting up and Configuration of Excel 3 February 20th 05 12:16 PM


All times are GMT +1. The time now is 07:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"