POV-Ray : Newsgroups : povray.off-topic : Using Excel as a 3D engine : Re: Using Excel as a 3D engine Server Time
11 Oct 2024 03:15:12 EDT (-0400)
  Re: Using Excel as a 3D engine  
From: scott
Date: 12 Mar 2008 09:09:16
Message: <47d7e40c$1@news.povray.org>
> And this stuff isn't really documented anywhere.

Rubbish!

Try looking up "range" or "cells" or "worksheet" in the object browser and 
reading the help.  It even gives examples, like (these are from the help on 
the "range" keyword, the others are similar):

Worksheets("Sheet1").Range("A5").Value = 
Worksheets("Sheet1").Range("A1").Value

Worksheets("Sheet1").Activate
Range("A1:H8").Formula = "=Rand()"    'Range is on the active sheet

Worksheets(1).Cells(1, 1).Value = 24

ActiveSheet.Cells(2, 1).Formula = "=Sum(B1:B5)"

How could it be any more clear what to do?  Or, as Gilles said, record a 
macro and then look at the code (and the help related to the code 
generated) - a nice trick for learning how to do lots of things in Excel 
(like creating charts, changing borders, sorting etc).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.