Trying to select range for Excel chart

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Trying to select range for Excel chart


    Hi,

    This is probably not an "perl" question, but I am writting this in perl,
    so I gave it a shot.

    I have created a excel spreadsheet using the Win32::ole..

    I am trying to create a excel chart,

    but instead of charting column A all the way through column J
    I just want to chart column A and column J.

    $Range = $Sheet->Range("A1:J10")->Select(); only gives the whole thing.
    Unfortunately, this is the only kind of examples I can find on the web.

    Now, I know I can copy and paste this two columns together on to a new
    sheet, but that kind of defeats the purpose.

    Please give me a pointer, thanks!

    --
    Posted via [url]http://dbforums.com[/url]
    hansioux Guest

  2. Similar Questions and Discussions

    1. PDF created from excel range...but with no colors
      I'm using the Reader, And Distiller version. I also have the Designer and professional versions.
    2. Select a range around a specific row
      Hi, I need to select a range of ten rows around a specific row such that the specific row floats to the beginning or end of the set as the set...
    3. Problem with Name of Excel Chart
      Hi folks, I have a perl script which produces a 4 worksheet Excel spreadsheet and 4 accompanying Excel Charts. The data all looks fine but I have...
    4. DB2 Select - how to return a range of results
      Hi, Here is some SQL from MS SQL 2000: select top 5 * from (select top 5 * from (select top 25 code, name, address from contacts where name...
    5. Select Top - percent range?
      I don't know the best way to go about selecting ranges of data. I want to be able to have the user select data from the table in 20% ranges of the...
  3. #2

    Default Re: Trying to select range for Excel chart

    Graham Wood <Graham.T.Wood@oracle.com> wrote in
    news:3F30F689.9E307414@oracle.com:
    > hansioux wrote:
    >
    >> but instead of charting column A all the way through column J
    >> I just want to chart column A and column J.
    >>
    >> $Range = $Sheet->Range("A1:J10")->Select(); only gives the whole
    >> thing.
    >
    > try
    > $Range = $Sheet->Range("A:A,J:J")->Select();
    >
    > This should select column A and column J rather than all columns
    > between A and J.
    Incidentally, one can figure out the answer to this question by starting
    up Excel, and selecting a discontinuous range for a formula, and looking
    at what is displayed in the formula bar. Considerably faster than waiting
    for someone else to do it and post the solution on the UseNet.

    Sinan.

    --
    A. Sinan Unur
    [email]asu1@c-o-r-n-e-l-l.edu[/email]
    Remove dashes for address
    Spam bait: mailto:uce@ftc.gov
    A. Sinan Unur Guest

  4. #3

    Default Re: Trying to select range for Excel chart


    It did work, thanks.



    Originally posted by Graham Wood
    > This is a multi-part message in MIME format.
    > --------------6ACA1FB34367523651D886F4
    > Content-Type: text/plain; charset=UTF-8
    > Content-Transfer-Encoding: 7bit
    >
    > hansioux wrote:
    >
    > > Hi,
    > > This is probably not an "perl" question, but I am writting this
    > in perl,
    > > so I gave it a shot.
    > > I have created a excel spreadsheet using the Win32::ole..
    > > I am trying to create a excel chart,
    > > but instead of charting column A all the way through column
    > J
    > > I just want to chart column A and column J.
    > > $Range = $Sheet->Range("A1:J10")->Select(); only gives the
    > whole thing.
    >
    > try
    > $Range = $Sheet->Range("A:A,J:J")->Select();
    >
    > This should select column A and column J rather than all columns
    > between A
    > and J.
    >
    > Hope this helps
    >
    > Graham
    >
    >
    >
    > --------------6ACA1FB34367523651D886F4
    > Content-Type: text/x-vcard; charset=UTF-8;
    > name="Graham.T.Wood.vcf"
    > Content-Transfer-Encoding: 7bit
    > Content-Description: Card for Graham Wood
    > Content-Disposition: attachment;
    > filename="Graham.T.Wood.vcf"
    >
    > begin:vcard
    > n:;Graham
    > x-mozilla-html:FALSE
    > adr:;;;;;;
    > version:2.1
    > email;internet:Graham.Wood@oracle.com
    > fn:Graham Wood
    > end:vcard
    >
    --------------6ACA1FB34367523651D886F4--

    --
    Posted via [url]http://dbforums.com[/url]
    hansioux Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139