Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to set the "DisplayGridlines" property of a worksheet
programmatically. I am getting an error when using: Worksheets(<name of a valid sheet).DisplayGridlines = False The error is: Runtime error '438' Object doen't support this property or method How may I accomplish this task without error? Thanks and God bless. -- Dr. Doug Pruiett Good News Jail & Prison Ministry www.goodnewsjail.org |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Correct syntax is : ActiveWindow.DisplayGridlines = False Cesar Zapata |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Doug,
Gridlines applies to the window object, so use Activewindow.Displaygridlines = False -- HTH RP (remove nothere from the email address if mailing direct) "Chaplain Doug" wrote in message ... I am trying to set the "DisplayGridlines" property of a worksheet programmatically. I am getting an error when using: Worksheets(<name of a valid sheet).DisplayGridlines = False The error is: Runtime error '438' Object doen't support this property or method How may I accomplish this task without error? Thanks and God bless. -- Dr. Doug Pruiett Good News Jail & Prison Ministry www.goodnewsjail.org |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just a hint, turn on the macro recorder and do it manually. Then your
question would be answered. -- Regards, Tom Ogilvy "Chaplain Doug" wrote in message ... I am trying to set the "DisplayGridlines" property of a worksheet programmatically. I am getting an error when using: Worksheets(<name of a valid sheet).DisplayGridlines = False The error is: Runtime error '438' Object doen't support this property or method How may I accomplish this task without error? Thanks and God bless. -- Dr. Doug Pruiett Good News Jail & Prison Ministry www.goodnewsjail.org |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Programmatically switch off "Variable declaration reqiured" in VBE? | Excel Programming | |||
How to programmatically control "Vary colors by point" | Excel Programming |