Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:48:38+00:00 2026-06-14T03:48:38+00:00

How to set the constant series value in excel using apple script. tell worksheet

  • 0

How to set the constant series value in excel using apple script.

 tell worksheet 1 of active workbook
      set obj to make new chart object at end with properties{ 
                                     left position:120,top:50,width: 120,height:150}  
 set ochart to chart of obj    
      tell ochart
           make new series at end with properties {series values:"={1}"}
      end tell
 end tell

 This script through error(Microsoft Excel got an error:Can't make class series)

Please replay
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:48:39+00:00Added an answer on June 14, 2026 at 3:48 am

    I’m not sure if my syntax is wrong or if this is a bug.

    Series

    You would expect to be able to create a new series with a constant by using:

    set newSeries to make new series at end with properties {name:"tempSeriesName", series values:{50}}
    

    However, I have only been able to use a range to create the series:

    set newSeries to make new series at end with properties {name:"tempSeriesName", series values:"A2"}
    

    However, once the series has been created you can update the value with:

    set series values to {50}
    

    My workaround has been to find the first blank cell in column A and populate it with a value. I then use this cell to create the range, update the range with the constant, and then revert the temporary cell to a blank.

    tell application "Microsoft Excel"
        tell worksheet "Sheet1" of active workbook
            -- Find the first empty cell and populate it with 1
            set counter to 0
            repeat
                set counter to counter + 1
                set myRange to ("A" & counter as text)
                if value of range myRange = "" then
                    set value of range myRange to "1"
                    exit repeat
                end if
            end repeat
    
            set obj to make new chart object at end with properties {name:"chart1", left position:20, top:88, width:33, height:90}
            set ochart to chart of obj
            tell ochart
                set chart type to column clustered
                -- create the chart with the temporary value
                set newSeries to make new series at end with properties {name:"tempSeriesName", series values:myRange}
                -- update the chart with your constant value
                set series values of newSeries to {50}
            end tell
            set value of range myRange to ""
        end tell
    end tell
    

    Chart

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a set of Constant.m files, one per target, to define specific things
How to set constant proportions in canvas(QwtPlotCanvas)? I am using Qt 4.7.3 and Qwt
Declaration... const n = 2 shl 33 will set constant n to value 4
I was using CI as my framework. How can I set a CONSTANT date
Django tutorials everywhere use constant-set application name all around - in urls file, in
Is there a way to set a constant width for geom_bar() in the event
Set<Type> union = new HashSet<Type>(s1); union.addAll(s2); AND Set <Type> union = new HashSet<Type>(); union.addAll(s1);
Is it possible to include a set of 'constant' values in a TSQL stored
How can you check if a constant is set at runtime? For instance, in
I have the following define'd constant set up. #define EndDateNotSpecified None But I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.