PdcCalculations.Active
Jump to navigation
Jump to search
Declaration
Active as PdcCalculation
Description
Returns the active calculation object
Notes
The ActiveCalculation property contains the calculation currently opened in Plan-de-CAMpagne.
Code example
This code opens the active calculation as object and fills user field 1.
dim objCalc
set objCalc = pdc.Calculations.Active
if IsValid(objCalc) then
objCalc.SelectHeader
objCalc.UserString(0) = "Userfield populated by script."
objCalc.Refresh
else
msgbox "No calculation open, script cannot proceed."
end if
set objCalc = nothing
Availability
Available since April 2014 (version 4.3 onwards).