Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default showing / hiding gridlines through VB code

can anyone kindly tell me if there is any way by which I can change the hide
/ show gridlines property of a workbook through VB code. I guess there must
be a system variable for this.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default showing / hiding gridlines through VB code

To hide gridlines use:

ActiveWindow.DisplayGridlines = False
--
Gary's Student


"archeti" wrote:

can anyone kindly tell me if there is any way by which I can change the hide
/ show gridlines property of a workbook through VB code. I guess there must
be a system variable for this.

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default showing / hiding gridlines through VB code

thanks to all

"Gary''s Student" wrote:

To hide gridlines use:

ActiveWindow.DisplayGridlines = False
--
Gary's Student


"archeti" wrote:

can anyone kindly tell me if there is any way by which I can change the hide
/ show gridlines property of a workbook through VB code. I guess there must
be a system variable for this.

thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default showing / hiding gridlines through VB code

Record a macro while doing it manually and you have a good start. It is a
Window-per-worksheet setting, not a Workbookwide setting, which makes it a
little confusing to handle.

HTH. Best wishes Harald


"archeti" skrev i melding
...
can anyone kindly tell me if there is any way by which I can change the

hide
/ show gridlines property of a workbook through VB code. I guess there

must
be a system variable for this.

thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default showing / hiding gridlines through VB code

Morning Archeti,

Gridlines are a property of the Window object, so:

Application.ActiveWindow.DisplayGridlines = False

Best regards

John

"archeti" wrote in message
...
can anyone kindly tell me if there is any way by which I can change the
hide
/ show gridlines property of a workbook through VB code. I guess there
must
be a system variable for this.

thanks





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
How to copy/paste from Excel to Word without showing gridlines? S Excel Discussion (Misc queries) 2 December 17th 09 02:57 PM
ScatterPlot Major and Minor Horizontal Gridlines not showing bfschuil Charts and Charting in Excel 3 September 19th 07 07:42 PM
Why is Excel 07 only showing gridlines on part of the sheet? xpedite Excel Discussion (Misc queries) 2 March 10th 07 02:18 PM
I just want to print an excel sheet showing gridlines with no text jiggityjohnson New Users to Excel 4 January 16th 06 05:39 PM
hiding gridlines in selected cell areas Nong Excel Discussion (Misc queries) 2 July 3rd 05 02:46 AM


All times are GMT +1. The time now is 04:32 PM.

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

About Us

"It's about Microsoft Excel"