PC Review


Reply
Thread Tools Rate Thread

Adjust Chart Size

 
 
dannypctang@gmail.com
Guest
Posts: n/a
 
      17th May 2009
Hi, I would like to create multiple charts by VBA. However, the chart
size were difference in different resolution's computers. May I know
how to make all charts have Width=10cells x Height = 15cells under
different resolution's computers? Thanks.
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      17th May 2009

You can set the chartobject's Width and Height to the Width and Height of a
10x15 range on the worksheet.
However, this assumes all users have the same cell "sizes"

'****************
dim rng as range
set rng=range(activesheet.cells(1,1), activesheet.cells(15,10))

with oChart
.width = rng.width
.height = rng.height
end with
'*****************

Adjust to suit.

Tim



<(E-Mail Removed)> wrote in message
news:580903b6-bf41-42c0-bf28-(E-Mail Removed)...
> Hi, I would like to create multiple charts by VBA. However, the chart
> size were difference in different resolution's computers. May I know
> how to make all charts have Width=10cells x Height = 15cells under
> different resolution's computers? Thanks.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I set up or adjust my column chart? Jerome Microsoft Excel Charting 2 24th Jul 2008 11:42 AM
how do I set up or adjust my column chart? Jerome Microsoft Excel Worksheet Functions 0 23rd Jul 2008 02:20 PM
Auto adjust Y-axis for chart with 2 jaydywan@gmail.com Microsoft Excel Programming 2 9th Aug 2007 12:20 AM
Adjust Chart Scale in Rpt with VBA =?Utf-8?B?a29oYWk=?= Microsoft Access VBA Modules 2 14th Nov 2005 05:47 PM
ADJUST SIZE JD Windows XP Internet Explorer 1 8th Apr 2004 09:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.