Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Document properties

"John Beschler" wrote in message
...
I am trying to change the option to show/not show zero valuesin an excel

workbook (or sheet) in VB 6.0. Can anyone point me in the right direction?
I've searched MSDN and google both, to no avail.

Hi John,

The property that controls this is a property of the Window object.
Therefore, unless you have a workbook with only a single worksheet, you need
to loop through each worksheet in the workbook, activate it, then turn off
the DisplayZeros property through the Window object. The code would look
something like this:

Dim wkbBook As Excel.Workbook
Dim wksSheet As Excel.Worksheet

''' Set a reference to you workbook here.

For Each wksSheet In wkbBook.Worksheets
wksSheet.Activate
wkbBook.Windows(1).DisplayZeros = False
Next wksSheet

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



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
Document Properties Bauhinia Excel Discussion (Misc queries) 1 October 23rd 07 12:33 PM
How do I unlock document properties? MarvaT Excel Discussion (Misc queries) 1 August 10th 06 05:17 PM
Properties of a document, help! Jason Excel Worksheet Functions 2 February 24th 06 10:47 AM
Document Properties Barb R. Excel Worksheet Functions 5 May 23rd 05 04:55 PM
Document properties Tom Ogilvy Excel Programming 0 July 20th 04 06:58 PM


All times are GMT +1. The time now is 09:34 PM.

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"