Previous Document Next Document

Object Model Reference : Classes : A : Application : Methods : Application.CreateStructSaveAsOptions


Application.CreateStructSaveAsOptions

Function CreateStructSaveAsOptions() As StructSaveAsOptions

Description

Member of Application

The CreateStructSaveAsOptions creates a StructSaveAsOptions object.

VBA example

The following VBA example saves each open document to the drive labelled as “C.”

Sub TestSaveAs()
 Dim sa As StructSaveAsOptions
 Dim d As Document
 Set sa = CreateStructSaveAsOptions
 With sa
  .EmbedICCProfile = True
  .EmbedVBAProject = True
  .Filter = cdrCDR
  .IncludeCMXData = True
  .Overwrite = True
  .ThumbnailSize = cdr10KColorThumbnail
  .Version = cdrCurrentVersion
 End With
 For Each d In Documents
  d.SaveAs "c:\" & CStr(d.Index) & ".cdr", sa
 Next d
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.