Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Chart zooming

Hello

to fix my problem I am having opening my workbok on other people's computers
I am using the code:

Private Sub Worksheet_Activate()

Range("A1:R1").Select
ActiveWindow.Zoom = True
Range("A1").Select

End Sub

This does not work for Chart sheets because I cannot figure out the object
that should go with .Zoom on the chart sheet.

Can anyone help or do you have any ideas about aooming so the whole chart is
visible on any resolution.

David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Chart zooming


Selecting the chart sheet and then doing

ActiveChart.Select
ActiveWindow.Zoom = True

worked for me.


--
Regards,
Tom Ogilvy

"David" wrote:

Hello

to fix my problem I am having opening my workbok on other people's computers
I am using the code:

Private Sub Worksheet_Activate()

Range("A1:R1").Select
ActiveWindow.Zoom = True
Range("A1").Select

End Sub

This does not work for Chart sheets because I cannot figure out the object
that should go with .Zoom on the chart sheet.

Can anyone help or do you have any ideas about aooming so the whole chart is
visible on any resolution.

David

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Chart zooming

Hi Tom

That code works if I assign it to a button.
It will not work under: Private Sub Chart_Activate()

Is there a way I can run this as the chart sheet opens?

David

"Tom Ogilvy" wrote:


Selecting the chart sheet and then doing

ActiveChart.Select
ActiveWindow.Zoom = True

worked for me.


--
Regards,
Tom Ogilvy

"David" wrote:

Hello

to fix my problem I am having opening my workbok on other people's computers
I am using the code:

Private Sub Worksheet_Activate()

Range("A1:R1").Select
ActiveWindow.Zoom = True
Range("A1").Select

End Sub

This does not work for Chart sheets because I cannot figure out the object
that should go with .Zoom on the chart sheet.

Can anyone help or do you have any ideas about aooming so the whole chart is
visible on any resolution.

David

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
Chart gets messed up after zooming Carlo Charts and Charting in Excel 2 February 2nd 07 07:55 PM
Zooming in chart by 2 click ?? herve Charts and Charting in Excel 1 March 2nd 06 02:54 AM
Chart Zooming and scrolling [email protected] Charts and Charting in Excel 3 November 18th 05 11:29 PM
Chart Zooming ken4capitola Excel Programming 0 November 10th 05 08:56 PM
Zooming in on a row L. Howard Kittle Excel Discussion (Misc queries) 0 October 25th 05 10:30 PM


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