Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to change properties of a chart that is not active in ..

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  New Mac only website in Canada  
Author Message
sidrali

External


Since: Oct 19, 2008
Posts: 1



(Msg. 1) Posted: Sun Oct 19, 2008 10:44 pm
Post subject: How to change properties of a chart that is not active in Excel in
Archived from groups: alt>comp>lang>applescript (more info?)

Version: MS Excel 2008
Operating System: Mac OS X 10.4.11

I want to change the properties like height and width etc of all
charts in a sheet as that of the active chart.

I am getting the properties of active chart properly but unable to set
the properties of other charts that are not active.

It seems as if the properties can't be changed of the charts that are
not active.

The code is below:

(Before running this code you must select one chart otherwise it will
give missing value for active chart.)

tell application "Microsoft Excel"

tell active chart
set chart_area to properties of chart area object
set height_active_chart to height of chart_area
set width_active_chart to width of chart_area
set top_active_chart to top of chart_area
set left_active_chart to left position of chart_area
end tell

repeat with chart_object in (get every chart object of active sheet)
display dialog name of chart_object as text
set height of properties of chart area object of chart_object to
height_active_chart
set width of properties of chart area object of chart_object to
width_active_chart
end repeat

end tell



Any help would be appreciated.

Thanks!

 >> Stay informed about: How to change properties of a chart that is not active in .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Paste contents of clipboard into active application? - Hello, I have created a script to pull text from a background application. I am using Quicksilver to run the script. I want to have the script then paste the text wherever my cursor is in whichever application I happen to be in. I have tried adding this...

Need to change this script - tell application "Microsoft Entourage" set read status of (every message in folder "Junk") to read delete (every message in folder "Junk") delete (every message in folder "Deleted Items") connect to...

Change in behavior OS X 10.3.5 / OS X 10.3.6 - I have a script to unmount several volumes upon startup. This script worked fine in 10.3.5. However in 10.3.6 if the startup is to a non-administrative account I am now presented with a dialog asking for the name and password of an administrative..

change first 500 character of a file - I have a variable (TheID3Text) containing 500 characters. I want these characters to replace the first 500 characters of a file that I have chosen. How do I replace the characters and save the file. Below is my current script. set MyMp3 to choose..

change of date format - Dear Applescript gurus, how can I change a date in this format ##.##.## in this other one ##/##/20## in Text Wrangler? Thanks in advance for your help.
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]