giena
11-08-2008, 02:17 PM
Okay, so I'm taking a programming course that uses VBA.
I'm having an issue trying to figure out how to display my data in an excel workbook.
We have to take a starting number and an ending number, then determine their square roots and cube roots. Then, we need to display them in a very specific manner in a workbook. Our starting and ending numbers are generated from user input, so the range can be 3 numbers or 1000, it's totally up to the user.
I get the math part, thats easy enough. But I don't quite understand how to display the data once the computations are complete.
I understand that you can use this:
Cells(1, 1).Value = "Math Table"
Cells(3, 1).Value = "Number"
Cells(3, 3).Value = "Square"
Cells(3, 5).Value = "Cube"
to display those values in the specified fields. But how do I address actually displaying the squares and cubes under the appropriate columns and rows? Would it use a rowcount + 1 type of argument?
I'm having an issue trying to figure out how to display my data in an excel workbook.
We have to take a starting number and an ending number, then determine their square roots and cube roots. Then, we need to display them in a very specific manner in a workbook. Our starting and ending numbers are generated from user input, so the range can be 3 numbers or 1000, it's totally up to the user.
I get the math part, thats easy enough. But I don't quite understand how to display the data once the computations are complete.
I understand that you can use this:
Cells(1, 1).Value = "Math Table"
Cells(3, 1).Value = "Number"
Cells(3, 3).Value = "Square"
Cells(3, 5).Value = "Cube"
to display those values in the specified fields. But how do I address actually displaying the squares and cubes under the appropriate columns and rows? Would it use a rowcount + 1 type of argument?