Click the Help Topics button to return to the list of topics.
Using ActiveX Components
An ActiveX component (*.OCX) enables you to add a great amount of power and flexibility to your VBA macro. Basically an ActiveX component is a special type of DLL (dynamic link library). Originally ActiveX components where created to replace Visual Basic controls, however they have exceeded this purpose. Visual Basic for Applications is an ActiveX container, meaning that you can include ActiveX components in your VBA macro. The components which are located on the toolbar are part of the Microsoft 2.0 Object library. These components are meant for VBA programming. You can add additional components to your VBA project. However, some components may work and others may not. Not all ActiveX components are meant for the VBA environment. It is recommended that you became familiar with a individual component before you add it to your VBA macro.
If you are trying to add a new Active X control to your VBA Toolbox and are receiving errors stating that the control is not licensed or that the control just does not work properly, this is not a bug.
Active X controls cover a wide range of applications and uses such as those listed below:
* Many Windows applications write Active X controls for their own use and therefore are not supported or even expected to be used by others. Many of the controls that are included with Corel WordPerfect Office are of this nature and cannot be used with Visual Basic for Applications.
*
* Some Active X controls installed to your system may have been included with other development applications such as Visual C++, Visual Basic, Delphi etc, and they may have license requirements that only allow them to run in their own development environment. Therefore they will not work with Visual Basic for Applications.
*
In conclusion, only those Active X controls available with Microsoft Forms 2.0 that are shipped as part of Microsoft Visual Basic for Applications 6.0 are supported. Any others you have on your system may be used with Visual Basic for Applications, but may not be actually intended to be used with Visual Basic for Applications, and therefore will not work. Also even if they do work you may not have rights to distribute them to your VBA Macro users. So in general, if you are using custom controls be very careful that the control you are using is meant to be using in VBA and that you have the proper licensing rights to use it.
To add an ActiveX component to your VBA Form
1. From the VBA Editor, select Insert, User Form.
2. Select Tools, Additional Controls
3. Select the desired component.
Using a Windows Metafile
If you are creating a Windows Metafile (*.wmf) in CorelDRAW, then you must include the header that appears when you save the file. If you neglect to include the header file, you will not be able to view the image in Visual Basic for Applications. It is strongly recommended that you include the header.
Corel Presentations PerfectScript Class Members
PerfectScript Macro Commands List
A
AboutDlg
AcquireImage
AcquireImageDlg
AcquireImageSelect
ActivateBoxField
AddArc
AddBackground
AddBackgroundDlg
AddLayout
AddLayoutDlg
AddPolyCurve
AddPolyLine
AddPolyLineWithEndCaps
AddRoundedRect
AddShape
AddSlide
AddSlideDlg
AddTextBox
AirBrush
AlignCenterLeftRight
AlignObjectsBottom
AlignObjectsCenter
AlignObjectsLeft
AlignObjectsRight
AlignObjectsTop
AlignObjectsTopBottom
AlignTextBottom
AlignTextMiddle
AlignTextTop
ApplicationMaximize
ApplicationMinimize
ApplicationMove
ApplicationRestore
ApplicationSize
AssignBackgroundDlg
AssignLayoutBackground
B
BackgroundGallery
BackgroundGetNext
BackgroundGetPrevious
BackgroundInsert
BackgroundNext
BackgroundPrevious
Backspace
BeginAcquireImageArea
BeginAcquireImageFixedSize
BeginAirBrush
BeginBitmap
BeginBulletChart
BeginCircle
BeginClosedCurve
BeginCurve
BeginDataChart
BeginEllipse
BeginEllipticalArc
BeginFloodFill
BeginFreehand
BeginLine
BeginLine2
BeginOrgChart
BeginPaintBrush
BeginPaintDropper
BeginPaintEraser
BeginPolygon
BeginRectangle
BeginRetrieveFigure
BeginRoundedRectangle
BeginSelect
BeginSelectArea
BeginSelectiveReplace
BegOfLine
BitmapBlur
BitmapBrightness
BitmapCancel
BitmapContrast
BitmapCreate
BitmapEmboss
BitmapEqualize
BitmapMosaic
BitmapRain
BitmapReturn
BitmapSaturation
BitmapSharpen
BitmapSmooth
BitmapSpecialEffectsDlg
BitmapSpikeRemoval
BitmapStereogram
BitmapTrace
BitmapTraceContours
BitmapUndo
BitmapWind
BitmapZoom
BlendDlg
BlendObjects
BoxAttributesDlg
BranchZoomInOut
BrushAttributesDlg
BulletChartAttrEnd
BulletChartAttrStart
C
CallCorelWebPage
CapBeginSentence
ChartArea
ChartAttributesDlg
ChartAutoRedraw
ChartBar
ChartBoxAttributesDlg
ChartBoxFields
ChartBoxFieldsDlg
ChartBubbleChart
ChartCancelDrop
ChartClearAll
ChartClearDlg
ChartClearText
ChartClose
ChartCollapseSubordinates
ChartCopy
ChartCopyContents
ChartCreate
ChartCreateBullet
ChartCreateDlg
ChartCreateOrg
ChartCreateOrgDlg
ChartCut
ChartDataAxisDlg
ChartDataColWidthDlg
ChartDataExcludeDlg
ChartDataFillDlg
ChartDataFormatDlg
ChartDataFormulasDlg
ChartDataFrameDlg
ChartDataGridTickDlg
ChartDataIncludeDlg
ChartDataLabelsDlg
ChartDataLayoutDlg
ChartDataLegendDlg
ChartDataPerspectiveDlg
ChartDataRecalc
ChartDataSeriesDlg
ChartDataSortDlg
ChartDataStatisticsDlg
ChartDataSubtitleDlg
ChartDataTitlesDlg
ChartDataY1AxisDlg
ChartDataY2AxisDlg
ChartDeleteDlg
ChartDrop
ChartDropCopy
ChartDropTarget
ChartEdit
ChartEditBox
ChartEditCellDlg
ChartExpandSubordinates
ChartFillAttributesDlg
ChartFontAttributesDlg
ChartFontDlg
ChartGallery
ChartGalleryDlg
ChartGetAttrs
ChartGotoCell2
ChartGotoCellDlg
ChartHiLo
ChartInsertCoworker
ChartInsertDataDlg
ChartInsertManager
ChartInsertNode
ChartInsertStaff
ChartInsertSubordinate
ChartLine
ChartLineAttributesDlg
ChartMoveContents
ChartOpenFileDlg
ChartOrDataWindowNext
ChartPaste
ChartPasteBranch
ChartPasteTranspose
ChartPie
ChartPromoteBox
ChartPutAttrs
ChartRadar
ChartRenameBoxField
ChartResetTextLocation
ChartSaveAsDlg
ChartScatter
ChartSelectAll
ChartSelectBox
ChartSelectBranch
ChartSelectFrameBase
ChartSelectGTA
ChartSelectLevels
ChartSelectLevelsDlg
ChartSelectLines
ChartSelectNext
ChartSelectPieText
ChartSelectPieWedge
ChartSelectPrev
ChartSelectSeries
ChartSelectText
ChartSetAbove
ChartSetAxisTitleHorz
ChartSetAxisTitleVert
ChartSetBack
ChartSetBelow
ChartSetBottom
ChartSetCenter
ChartSetCreateSize
ChartSetFront
ChartSetHide
ChartSetHorz
ChartSetInside
ChartSetLabels
ChartSetLeft
ChartSetLegend
ChartSetLinear
ChartSetLog
ChartSetOutside
ChartSetRight
ChartSetSpacing
ChartSetSpacingDlg
ChartSetStagger
ChartSetTitleLeft
ChartSetTitleRight
ChartSetTop
ChartSetUnStagger
ChartSetVert
ChartSetY1
ChartSetY2
ChartSubtitleToggle
ChartSurface
ChartTextUserPos
ChartTitlesDisplay
ChartTitleToggle
ChartToggle3D
ChartToggleHorzVert
ChartToggleTable
ChartUnselectAll
ChartViewDatasheet
ChartViewOrgOutline
ChartZeroBaseline
ClearBackground
ClearBitmap
ClearDrawing
ClearLayout
ClearMasterDlg
ClearPresentation
ClearPresentationDlg
ClearSlide
ClipArtBrowser
ClipboardCopy
ClipboardCut
ClipboardPaste
CombineObjects
ConnectorsDlg
ContourText
ContourTextAttributesDlg
ConvertToBitmap
ConvertToPolygon
CopyMarquee
CopySelectedSlides
CrosshairCursor
CutMarquee
D
DatasheetBlockMode
DatasheetColWidth
DatasheetDateFmt
DatasheetDelete
DatasheetDown
DatasheetExclude
DatasheetExport
DatasheetFillDates
DatasheetFillNumbers
DatasheetFormula
DatasheetGoto
DatasheetHome
DatasheetImport
DatasheetImportOptions
DatasheetImportText
DatasheetInclude
DatasheetInput
DatasheetInsert
DatasheetLeft
DatasheetNumericFmt
DatasheetOneColWidth
DatasheetPgDn
DatasheetPgLeft
DatasheetPgRight
DatasheetPgUp
DatasheetRight
DatasheetUp
DateCode
DateFormat
DateFormatDlg
DateText
DefineBulletsDlg
DefineSubTitleDlg
DefineTitleDlg
Delete
DeleteAlignBars
DeleteAlignmentBar
DeleteBackground
DeleteKeyboard
DeleteLayout
DeleteMenu
DeleteObjects
DeleteSelectedSlides
DeleteToBegOfWord
DeleteToEndOfWord
DeleteWord
DelToDocBottom
DelToEndOfLine
DisplaySettingsDlg
DocPrevious
DocumentBottom
DocumentFormSettings
DocumentMaximize
DocumentMinimize
DocumentMove
DocumentNext
DocumentPageColor
DocumentRestore
DocumentSize
DocumentTop
DoubleSmartQuote
DraftMode
DrawingSizeDlg
DrawingSizeSettings
E
EditBackground
EditLayouts
EditOleObject
EditSelectedBitmap
EditSlides
EndOfLine
EndOfSentenceSpacing
EnvBackgroundTitle
EnvCapBeginSentence
EnvChartDataWin
EnvChartDisplay
EnvChartType
EnvColorPalette
EnvCurrentBackgroundNumber
EnvCurrentFilename
EnvCurrentLayoutNumber
EnvCurrentMode
EnvCurrentSlideNumber
EnvCurrentTool
EnvDoubleSmartQuoteClose
EnvDoubleSmartQuoteOpen
EnvDoubleSmartQuoteState
EnvEndOfSentenceSpacing
EnvFormInfo
EnvGetCurrentPrinter
EnvGetMarqueeHeight
EnvGetMarqueeWidth
EnvGetMarqueeXPos
EnvGetMarqueeYPos
EnvGetObjectHeight
EnvGetObjectWidth
EnvGetObjectXPos
EnvGetObjectYPos
EnvGetPointerPositionY
EnvGetPointerPositionX
EnvIrregularCap
EnvIsCommandValid
EnvIsSlideSkipped
EnvLayoutTitle
EnvLeftChar
EnvNextFontFace
EnvNumberOfBackgrounds
EnvNumberOfDocuments
EnvNumberOfLayouts
EnvNumberOfSlides
EnvOpenDocuments
EnvPaths
EnvQuickCorrect
EnvRightChar
EnvSelectedText
EnvSingleSmartQuoteClose
EnvSingleSmartQuoteOpen
EnvSingleSmartQuoteState
EnvSingleSpaceInSentence
EnvSlideStringData
EnvSlideTitle
EnvSpeakerNotes
EnvSpeedLinkNumericData
EnvSpeedLinkSelect
EnvSpeedLinkStringData
EnvTemplate
EnvTextChartType
EnvUseRegQuotesWithNumbers
EraseMarquee
ExportBMP
ExportCAL
ExportCGM
ExportCPT
ExportCPT7
ExportEMF
ExportEPS
ExportGIF
ExportIMG
ExportJPG
ExportMAC
ExportPCX
ExportPNG
ExportSCT
ExportTGA
ExportTIFF
ExportWMF
ExportWVL
F
FigureReturn
FigureReturnAll
File1Open
File2Open
File3Open
File4Open
File5Open
File6Open
File7Open
File8Open
File9Open
FileClose
FileExit
FileNewDlg
FileOpen
FileOpenDlg
FileRetrieve
FileSave
FileSaveAs
FileSaveAsDlg
FillAttributes
FillAttributesDlg
FindReplaceTextDlg
FloodFill
FontSizeDec
FontSizeInc
G
GetAttrDlg
GetAttributes
GlyphEdit
GoToKeysDlg
GotoPositionDlg
Grammatik
GrayScale
GroupObjects
H
HardReturn
HelpAssistant
HelpHowDoI
HelpIndex
HelpKeyboard
HelpMacros
HelpPerfectExpertDlg
HelpTransition
HelpWhatIs
I
ImportOrgOutline
InhibitInput
InsertClipartDlg
InsertEquation
InsertFileDlg
InsertMemoObject
InsertMovie
InsertMovieObject
InsertQuattroTable
InsertTextart
InternetPublisher
InvertColors
IrregularCap
J
JustifyAuto
JustifyCenter
JustifyLeft
JustifyRight
K
KerningDlg
KeyboardCopy
KeyboardCreate
KeyboardEdit
KeyboardRename
KeyboardSelect
KeyType
L
LayoutGallery
LayoutGetNext
LayoutGetPrevious
LayoutNext
LayoutPrevious
LineAttributes
LineAttributesDlg
LineSpacingDlg
M
MacroFilePlay
MacroPause
MacroPlayDlg
MacroStop
Mail
MailSystem1
MailSystem2
MailSystem3
MailSystem4
MailSystem5
MailSystem6
MailSystem7
MailSystem8
MailSystem9
MakeRuntime
MakeRuntimeDlg
MarkAsStaff
MasterGalleryDlg
MaximizeSpacing
MenuCopy
MenuCreate
MenuEdit
MenuRename
MenuSelect
MirrorObjectsHorizontally
MirrorObjectsVertically
ModifyFigure
ModifyObjects
MoveBackward
MoveForward
MoveSelectedSlides
MoveToBack
MoveToFront
MovieSettings
N
NameLayoutDlg
NewDocument
NewDrawingCreate
NewPresentationCreate
NewPresentationDlg
NormalText
O
ObjectAnimationDlg
ObjectAreaSelect
ObjectMove
ObjectPointSelect
ObjectScale
ObjectSetFillBackground
ObjectSetFillForeground
ObjectSetFillPattern
ObjectSetFillState
ObjectSetFrameState
ObjectSetLineBackground
ObjectSetLineForeground
ObjectSetLinePattern
ObjectSetLineStyle
ObjectSetLineWidth
Ole20InsertObjectDlg
OleBrowseLinksDlg
OleChartCloseFile
OleChartExit
OleChartUpdateFile
OleCloseFile
OleExit
OleInsertFromFile
OleInsertObject
OlePlayInformation
OlePlaySettings
OleSaveAsDlg
OleUpdateFile
OrgChartAlignmentDlg
OrgChartBoxSize
OrgChartFontAttrsDlg
OrgChartFontDlg
OrgChartImportOutline
OrgChartLayoutDlg
OrgChartOrientationDlg
OrgChartUndelete
OrgChartViewAllBranches
OrgChartViewSelectedBranch
OrgTextEditExit
OutlineNextLevel
OutlineObject
OutlinePreviousLevel
OutlineRevealCodes
OverrideSlideDlg
P
PageColorDlg
PageFormatDlg
PageMode
PageSizeInfo
PaintBrush
PaintDropMarquee
PaintDropper
PaintEraser
PaintEscapeUndo
PaintMoveMarquee
PasteMarquee
PasteObject
PasteSpecialOle20Dlg
PlaySlideShow
PlaySlideShowDlg
PlaySlideShowFirst
PointerPosition
PosterDlg
PRActivate
PrefCustomDlg
PrefEnvironmentDlg
PreferenceDateTime
PreferenceDateTimeDlg
PreferenceEnvGenDlg
PreferenceEnvironmentDlg
PreferenceEnvLangDlg
PreferenceFormSettings
PreferenceKeyboardDlg
PreferenceLOFDlg
PreferenceMenuDlg
PreferencePropertyBarDlg
PreferencesDlg
PreferenceToolbarDlg
PreferenceToolPaletteDlg
PrefLOFDlg
PrintBlackWhite
PrintCopies
PrintDestination
PrintDialog
PrintDocTkn
PrintDocument
PrintImageBinding
PrintImageOffset
PrintInColor
PrintInReverseOrder
PrintMode
PrintNoBackground
PrintRangeFrom
PrintRangeTo
PrintResolution
PrintSelectByName
PrintSettings
PrintSlideNumber
PrintSlidesPerPage
PrintSlideTitle
PrintSortOrder
PrintSourceFilename
PrintTextAsGraphics
PrintTwoSided
PropertyBarEdit
PublishToPDF
PutAttributes
Q
Quick3D
Quick3DDlg
QuickCorrect
QuickCorrectAddItem
QuickCorrectDeleteItem
QuickCorrectDlg
QuickCorrectOptions
QuickWarp
QuickWarpDlg
R
RealizeFontChanges
Redo
RedrawChart
RefreshScreen
ReplaceMasters
ReplaceWithClipart
ResampleBitmapCmd
ResetColorTable
RetrieveChartStyle
RetrieveFigure
RetrieveFigureDlg
RetrieveOutline
RetrieveStyleDlg
RevealCodes
RotateObject
RotateObjects
RotateObjectsAroundAnchor
RotateObjectsDlg
RulerGridOptionsDlg
S
SaveChartStyle
SaveStyleDlg
SaveWithEvenBorders
ScreenDown
SelectAllObjects
SelectBegOfLine
SelectBox
SelectCurrentLevel
SelectDocBottom
SelectDocTop
SelectDown
SelectEndOfLine
SelectiveReplace
SelectLeft
SelectLikeObjects
SelectOnlineServiceDlg
SelectPrinter
SelectRight
SelectScreenDown
SelectScreenUp
SelectTextChart
SelectUp
SelectWordLeft
SelectWordRight
SendtoGraphicsland
SendToWP
SeparateObject
SetAirbrushDensity
SetAxisOptions
SetBackgroundName
SetBackgroundNameDlg
SetBarStyle
SetBitmapTransparency
SetBorder
SetBrushShape
SetBrushWidth
SetBubbleAnchors
SetBulletAttributes
SetBulletColor
SetBulletDefinition
SetBulletEffect
SetBulletLayout
SetBulletLineSpacing
SetBulletSize
SetChartAttrsBold
SetChartAttrsItalic
SetChartAttrsUnderline
SetChartFont
SetChartTitlePos
SetColorAttributes
SetConnector
SetExplodeDistance
SetFontFace
SetFontGradient
SetFontOutline
SetFontPattern
SetFrameOptions
SetGradient
SetGridSnapOptions
SetGridTickOptions
SetHLOStyle
SetLabelOptions
SetLayoutSizes
SetLayoutTitle
SetLegendOptions
SetLevelFont
SetLevelGradient
SetLevelPattern
SetLineAttributes
SetLineSpacing
SetObjectTransition
SetOrgAlignment
SetOrgChartBox
SetOrgChartLayout
SetOrgChartTop
SetOrgOrientation
SetPaintMarquee
SetPaletteColor
SetPattern
SetPerspectiveOptions
SetPieLabelOptions
SetPieStyle
SetProportionalPies
SetRadarView
SetRangeHighlight
SetSeriesOptions
SetSlideLinkFile
SetSlideNotes
SetSlideOptions
SetSlideOverride
SetSlideSound
SetSlideTransition
SetSlideTransitionDirectionOnly
SetSlideTransitionOnly
SetSlideTransitionSpeedOnly
SetTableBlend
SetTableSurfaceColor
SetTableSurfaceOptions
SetTemplateAll
SetTemplateCurrent
SetTextChartBox
SetTextFillAttributes
SetTextLineAttributes
SetTexture2
SetTitleString
SetViewOptions
ShadowAttributes
ShadowAttributesDlg
ShellFileOpen
ShellPlayShow
ShowBackground
ShowGrid
ShowGuides
ShowHideSubordinates
ShowLayout
ShowPropertyBar
ShowRuler
ShowSlide
ShowToolbar
ShowToolPalette
SilhouetteObject
SingleSmartQuote
SingleSpaceInSentence
SizeObjectsAroundAnchor
SizeObjectsByLeftBottomDlg
SizeObjectsByLeftTopDlg
SizeObjectsByRightBottomDlg
SizeObjectsByRightTopDlg
SkewObject
SkewObjectsAroundAnchor
SkewObjectsAtBottomDlg
SkewObjectsAtLeftDlg
SkewObjectsAtRightDlg
SkewObjectsAtTopDlg
SkipSelectedSlide
SlideAppearanceBackground
SlideAppearanceLayout
SlideAudienceManager
SlideDisplaySequence
SlideFirst
SlideGetLast
SlideGetNext
SlideLast
SlideLayoutReApply
SlideNext
SlidePageDown
SlidePageUp
SlidePrevious
SlidePropertiesDlg
SlideQuickPlay
SlideSelect
SlideSetCurrent
SlideShowOutline
SlideShowSlide
SlideShowSort
SlideTransitionDlg
SlideTransitionsDlg
SnapToAlignment
SnapToGrid
SortSpreadsheetData
SoundControlDlg
SpaceObjectsHorizontally
SpaceObjectsVertically
SpeakerNotesDlg
SpeedKeyDelete
SpeedKeyDlg
SpeedKeyProperties
SpeedLinkAttributeDlg
SpeedLinkDelete
SpeedLinkListDlg
SpeedLinkProperties
Speller
StretchObjectsAroundAnchor
StretchObjectsByBottomDlg
StretchObjectsByLeftDlg
StretchObjectsByRightDlg
StretchObjectsByTopDlg
SummaryInfoDlg
SwapFillColors
SwitchDocument
T
TableLayoutDlg
TemplateChartCreateDlg
TextAttributesDlg
TextBlock
TextBold
TextBoxCreate
TextChartNext
TextChartPrevious
TextDown
TextEditExit
TextFontDlg
TextInsertMode
TextItalic
TextKerning
TextLayoutBackTab
TextLayoutCenter
TextLayoutDoubleIndent
TextLayoutFlushRight
TextLayoutHangingIndent
TextLayoutIndent
TextLeft
TextLineCreate
TextReplace
TextRight
TextScreenTop
TextSearch
TextTab
TextToCurvesCmd
TextUnderline
TextUp
Thesaurus
ToolbarCopy
ToolbarCreate
ToolbarDelete
ToolbarEdit
ToolbarRename
ToolbarSelect
ToolPaletteEdit
TransparentColorDlg
Type
U
UndeleteDlg
Undo
UnselectAllObjects
UseMasterPageColor
UseRegQuotesWithNumbers
V
VersionControlDocument
VersionControlRetrieve
VersionControlSave
ViewAutoSelect
ViewPrevious
ViewSelectedItems
ViewToolBarsDlg
W
WebBrowse
WebBrowserLaunch
WindowsCascade
WindowsTile
WindowsTileHorizontal
WordLeft
WordPerfectCharactersDlg
WordRight
WorkInProgressDlg
X
No commands
Y
No commands
Z
ZoomArea
ZoomDlg
ZoomIn
ZoomOther
ZoomOut
ZoomPercent100
ZoomPercent150
ZoomPercent200
ZoomPercent50
ZoomPercent75
ZoomToBox
ZoomToDrawingArea
ZoomToObjects
ZoomToPage
ZoomToSlideShowSize
Calling product commands outside of the intended scope
It is not recommended to call a PerfectScript member until you are familiar with what its function. You will produce a run time error if you call a method outside of the context it was meant to be used. For example, you must have text in focus before you can select the 'Thesaurus' menu option. If you call the 'Thesaurus' method when the menu option is disabled, you will be using the product command outside of the intended scope and a run time error will occur. It is recommended that you become familiar with the a specific task before you automate it.