I'm trying to get an excel macro written to make some calculations easier. Here's the situation.
I've got two columns of data, call them A and B. I have a rather elaborate calculation setup in the spreadsheet that relies on two numbers in Cells D1 and E1. This calculation can't be combined into one cell in any way (trust me, I've tried). The calculation spits out the result into Cell G1.
What I want to do is write a macro that copies the values from A1 and B1 into D1 and E1, then copies the value of the result from G1 into cell C1. When this is all done, I want it to move to the next empty cell in columns A and B and loop until it's at the end of the data.
I've got everything written except something to copy the values in A1 and B1 together. Anyone know the code I need to use?
I've got two columns of data, call them A and B. I have a rather elaborate calculation setup in the spreadsheet that relies on two numbers in Cells D1 and E1. This calculation can't be combined into one cell in any way (trust me, I've tried). The calculation spits out the result into Cell G1.
What I want to do is write a macro that copies the values from A1 and B1 into D1 and E1, then copies the value of the result from G1 into cell C1. When this is all done, I want it to move to the next empty cell in columns A and B and loop until it's at the end of the data.
I've got everything written except something to copy the values in A1 and B1 together. Anyone know the code I need to use?