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

Hi

I realise this is primarily a forum for VB developers, but I hope someone can help
I'm using the Excel 8.0 type library in a VC++ 6.0 project. I want to set the Zoom property of the PageSetup object to fals
so that I can use the SetFitToPagesWide and SetFitToPagesTall methods. In VBA this looks straight forward - you can set Zoom to a boolean or to a value. However, when I try to call the type library method SetZoom(COleVariant((short)FALSE) or even SetZoom(COleVariant(VARIANT_FALSE)) it throws an exception

It appears that the SetZoom function will only take a long parameter between 10 and 400. Does anyone know how to se
the Zoom property to false using the Excel type library? Any help is greatly appreciated

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
PageSetup Macro Julian Glass Excel Worksheet Functions 1 March 29th 08 01:54 PM
PageSetup Stanley Excel Discussion (Misc queries) 1 December 14th 05 07:21 PM
PageSetup.LeftFooter only on last Page Andy Excel Worksheet Functions 3 December 6th 04 01:53 PM
PageSetup is slow Christof DB Excel Programming 4 December 5th 03 04:09 PM
PageSetup slow Oliver Chiu Excel Programming 1 July 10th 03 02:06 PM


All times are GMT +1. The time now is 12:42 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"