3.7.5.104.15 wks.DC.Allow()

Syntax

wks.DC.Allow()

Access

Read/write
numeric

Description

Check if the worksheet is used as the destination of a Data Connector:

0 = false,
1 = true,
2 = clean up existing File Import information.

If an analysis template imported data with import X-Function in the first place and uses Data Connector to import data later (this may be the case if the template was made in some old version like Origin2019 and reused in newer version like Origin2020b), set Allow to 2 to clear old import info saved in the worksheet: wks.DC.allow(2)=; It will return 1 if worksheet is the proper type and File Import Info if present has been removed.

Examples