Event after update / calculation
Since you posted this question in Excel Programming I am assuming you want
some VBA code. I'm not sure which event (if any) you use to apply the
calculation results to the worksheets. Do you have a Userform that does the
calculations? If not, I would just put a Command Button on a worksheet and
then assign this macro to it.
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
'puts results in specified cells
Sheet("Sheet1").Range("A1").Value = calculation1
Sheet("Sheet1").Range("A2").Value = calculation2
Sheet("Sheet1").Range("A3").Value = calculation3
Sheet("Sheet1").Range("A4").Value = calculation4
'etc.
End With
Application.ScreenUpdating = True
End Sub
Hope this helps!
--
Cheers,
Ryan
"Troubled User" wrote:
I have a spreadsheet with multiple sheets that run as a calculator.
I have an input sheet that routes a single column of information to the
calculator using a hlookup.
After you select a cell (column) the hlookup routes the information to the
calculator. At that point, after all the calculations are run I need copy
the information back from the calculator and store in the correct column.
I have tried using various events but everything returns the values prior to
selecting the particular column.
Any help is appreciated.
|