Documentation Center

PslProject.SuspendSaving

When a macro changes data in a project, the project file is saved immediately. If your project has many string lists, this can take a long time. You can speed up your operation by suppressing the saving of the project. For each call to SuspendSaving you must call ResumeSaving after the operation.

Syntax

Expression.SuspendSaving()

Expression Object of type PslProject

Example

Dim prj As PslProject
Set prj = PSL.ActiveProject

prj.SuspendSaving

For Each src In prj.SourceLists
    ' do someting with src
Next src

For Each trn In prj.TransLists
    ' do something with trn
Next trn

prj.ResumeSaving