Quick StartThe ReportMagic MenuSchedulesBatch JobsReport StudioFilesProfileAdminAccount DetailsMeraki WebHooksGetting StartedAbout ReportMagicRegistering and Logging InSearching ReportMagicConnections and AgentsWriting ReportsStarting Out With Report StudioCreating Report TemplatesRMScriptMacro ShorthandReporting on Different Periods of TimeSetting Macro Parameter DefaultsStoring Input and Output FilesReport VariablesUsing Variable ParametersSpecifying How Graphs LookStep-by-Step LogicMonitor Graph ExamplesStep-by-Step Jira Graph ExamplesSpecifying How Tables LookChanging Fonts and ColorsUsing Macros in PowerPoint TemplatesRestricted MacrosGenerating Reports Using SchedulesUsing HTML Forms in SchedulesSeeing How Reports RanViewing ReportsCached ValuesUsing AggregationsAdvanced Report StudioAPI AccessREST APIREST API - FilesAdvancedRole-Based Access Control (RBAC)SecurityMiscellaneousBadgesCertificationsTips, Tricks and Shortcut KeysMacrosAgentAgent.ConnectionAgent.ExecuteAgent.MonitorMagicNodeListAgent.MonitorMagicNodeMeasurementListAgent.MonitorMagicNodeMeasurementSummaryAgent.MonitorMagicNodePropertyListAgent.MonitorMagicNodeTypeListAgent.PropertyAgent.SqlAnalysisAgent.SqlGraphAgent.SqlListAgent.SqlTableAgent.SqlValueAgent.SqlValuesAgent.WebQueryAlertMagicAlertMagic.MetricsGraphAlertMagic.MetricsListAutoTaskAutoTask.AccountListAutoTask.AccountPropertyAutoTask.ConnectionAutoTask.CountAutoTask.FieldListAutoTask.FieldPropertyAutoTask.ListAutoTask.PropertyAutoTask.SummaryValueAutoTask.TicketListAutoTask.TicketPropertyAzureAzure.ConnectionAzure.LogAnalyticsGraphAzure.LogAnalyticsQueryAzure.LogAnalyticsScalarAzure.LogAnalyticsTableAzure.ResourceGroupListAzure.ResourceListAzure.ResourcePropertiesAzure.SentinelAlertRuleListAzure.SentinelConnectorListAzure.SentinelIncidentListAzure.SentinelThreatIndicatorListAzure.SentinelThreatIndicatorMetricListAzure.SubscriptionListBloggerBlogger.BlogPropertyBlogger.ConnectionBlogger.PageBlogger.PageListBlogger.PagePropertyBlogger.PostBlogger.PostListBlogger.PostPropertyCacheCache.ExpiresCache.GetCache.IsSetCache.SetCache.UnsetCertifyCertify.ConnectionCertify.DepartmentListCertify.DepartmentPropertyCherwellCherwell.BusinessObjectDefinitionListCherwell.BusinessObjectListCherwell.BusinessObjectSchemaCherwell.BusinessObjectSummaryCherwell.ConnectionCiscoCisco.ConnectionCisco.FirmwareVersionPropertyCisco.SecurityAdvisoryListCisco.SerialNumberPropertyCisco.SoftwareSuggestionListCiscoDnaCenterCiscoDnaCenter.ConnectionCiscoDnaCenter.SiteListCiscoDnaCenter.SitePropertyCloudHealthCloudHealth.AssetDetailsCloudHealth.AssetListCloudHealth.AvailableReportDimensionsCloudHealth.AvailableReportOptionsCloudHealth.AvailableReportsListCloudHealth.AwsAccountDetailsCloudHealth.AwsAccountsListCloudHealth.ConnectionCloudHealth.CustomerDetailsCloudHealth.CustomerListCloudHealth.CustomerReportDetailsCloudHealth.CustomerStatementDetailsCloudHealth.OrganisationAccountsListCloudHealth.OrganisationListCloudHealth.QueryConnectWiseManageConnectWiseManage.ConnectionConnectWiseManage.CountConnectWiseManage.DictionaryConnectWiseManage.ListConnectWiseManage.PropertyCoreArrayArray.CountBreakBreakpointCalculateColorCommentContinueConvertDeleteDeleteRowDocumentBookmarkDocumentBreakDocumentInsertSectionDocumentSectionEmailEmailFileEmailReportExecuteForEachFormatTableCellFormatTableRowIfIgnoreIncInsertTableCellImageIsSetLinearRegressionLinkMapObjectRandomRegexRepeatRowSearchAndReplaceSectionSettingsSleepStopStopwatchStringStringIndexSubstringSwitchThrowExceptionUnsetWarningDatabaseDatabase.ConnectionDatabase.GraphDatabase.ListDatabase.TableDatabase.ValueDatabase.ValuesDataMagicDataMagic.SyncDictionaryDictionary.ItemDictionary.KeysDictionary.ValuesDocumentDocument.SetPropertiesFileFile.CopyFile.CopyOutputFilesFile.Csv.CellFile.Csv.RowFile.Csv.RowCountFile.Csv.TableFile.EmbedFile.ExecuteFile.ExistsFile.ImageFile.InsertFile.ListFile.LoadListFile.LoadObjectFile.LoadStringFile.LoadVariablesFile.Xlsx.CellFile.Xlsx.RowFile.Xlsx.RowCountFile.Xlsx.TableFunctionFunction.CallFunction.DefineGoogleGoogle.ConnectionGoogle.TableGraphGraph.AddDataGraph.DeleteDataGraph.RenameDataGraph.UpdateGravatarGravatar.ImageHighlightHighlight.BearerSummaryHighlight.BroadbandSummaryHighlight.CellularSummaryHighlight.ConnectionHighlight.FolderListHighlight.HttpServerPerformanceSummaryHighlight.IcmpTcpUdpPerformanceSummaryHighlight.MosPerformanceSummaryHighlight.PrecisionPerformanceSummaryHighlight.TunnelSummaryHighlight.WatchNodeListHighlight.WirelessAccessPointSummaryHubSpotHubSpot.ListJarrayJarray.TableJiraJira.AttachmentImageJira.AttachmentListJira.AttachmentPropertyJira.ConnectionJira.GraphJira.InsertMarkupJira.IssueAnalysisJira.IssueCommentListJira.IssueCommentPropertyJira.IssueLastCommentPropertyJira.IssueListJira.IssuePropertyJira.IssueResponseTimeJira.LastImageJira.StatusListJira.TableJira.TimeInStateJira.UserListJira.UserPropertyJsonJson.ItemJson.ListKrokiKroki.ImageListList.AddList.AnalysisList.ComplementList.CountList.DequeueList.DuplicatesList.FirstList.GraphList.GroupByList.IndicesOfList.IntersectionList.ItemList.RangeList.SelectList.SelectColumnsList.SortList.SummaryValueList.TableList.UnionList.WhereLogicMonitorLogicMonitor.AccountPropertyLogicMonitor.AlertAnalysisLogicMonitor.AlertCalendarLogicMonitor.AlertCountLogicMonitor.AlertListLogicMonitor.AlertMapLogicMonitor.AlertPropertyLogicMonitor.AlertRuleListLogicMonitor.AlertRulePropertyLogicMonitor.AlertStatusLogicMonitor.AlertTableLogicMonitor.AppliesToFunctionListLogicMonitor.AppliesToFunctionPropertyLogicMonitor.AppliesToListLogicMonitor.AuditEventAnalysisLogicMonitor.BigNumberWidgetValuesLogicMonitor.ClearCacheLogicMonitor.CollectorExecuteLogicMonitor.CollectorGroupListLogicMonitor.CollectorGroupPropertyLogicMonitor.CollectorListLogicMonitor.CollectorPropertyLogicMonitor.CollectorVersionListLogicMonitor.CollectorVersionPropertyLogicMonitor.ConfigCheckListLogicMonitor.ConfigCheckPropertyLogicMonitor.ConfigSourceGroupListLogicMonitor.ConfigSourceListLogicMonitor.ConfigSourcePropertyLogicMonitor.ConfigSourceXmlLogicMonitor.ConnectionLogicMonitor.ConnectionApiTokenLogicMonitor.ConvertToLiveWidgetLogicMonitor.DashboardLogicMonitor.DashboardGroupListLogicMonitor.DashboardGroupPropertyLogicMonitor.DashboardListLogicMonitor.DashboardPropertyLogicMonitor.DashboardWidgetListLogicMonitor.DatamartSyncLogicMonitor.DataPointListLogicMonitor.DataPointPropertyLogicMonitor.DataSourceGraphListLogicMonitor.DataSourceGraphPropertyLogicMonitor.DataSourceGroupListLogicMonitor.DataSourceListLogicMonitor.DataSourcePropertyLogicMonitor.DataSourceXmlLogicMonitor.DeviceConfigSourceFileLogicMonitor.DeviceConfigSourceInstanceListLogicMonitor.DeviceConfigSourceListLogicMonitor.DeviceConfigSourcePropertyLogicMonitor.DeviceCountLogicMonitor.DeviceDataSourceListLogicMonitor.DeviceDataSourcePropertyLogicMonitor.DeviceGroupListLogicMonitor.DeviceGroupPropertyLogicMonitor.DeviceListLogicMonitor.DevicePropertyLogicMonitor.DeviceSlaWidgetPropertyLogicMonitor.DeviceTableLogicMonitor.EscalationChainDestinationListLogicMonitor.EscalationChainDestinationPropertyLogicMonitor.EscalationChainListLogicMonitor.EscalationChainPropertyLogicMonitor.EventSourceFilterListLogicMonitor.EventSourceFilterPropertyLogicMonitor.EventSourceGroupListLogicMonitor.EventSourceListLogicMonitor.EventSourcePropertyLogicMonitor.EventSourceXmlLogicMonitor.FinancialInformationLogicMonitor.ForecastLogicMonitor.GraphLogicMonitor.HistoricSdtListLogicMonitor.ImageLogicMonitor.InstanceAnalysisLogicMonitor.InstanceCountLogicMonitor.InstanceDetailsTableLogicMonitor.InstanceGroupCountLogicMonitor.InstanceGroupListLogicMonitor.InstanceListLogicMonitor.InstancePropertyLogicMonitor.IntegrationListLogicMonitor.IntegrationPropertyLogicMonitor.JobMonitorListLogicMonitor.JobMonitorPropertyLogicMonitor.LastMeasurementLogicMonitor.LogAnalysisLogicMonitor.LogicModuleMetadataPropertyLogicMonitor.LogicModuleUpdateListLogicMonitor.LogicModuleUpdatePropertyLogicMonitor.LogItemListLogicMonitor.NetscanGroupListLogicMonitor.NetscanGroupPropertyLogicMonitor.NetscanListLogicMonitor.NetscanPropertyLogicMonitor.NewUserMessagePropertyLogicMonitor.PaymentInformationLogicMonitor.PercentageAvailabilityLogicMonitor.PortalVersionLogicMonitor.PropertySourceGroupListLogicMonitor.PropertySourceJsonLogicMonitor.PropertySourceListLogicMonitor.PropertySourcePropertyLogicMonitor.QueryLogicMonitor.RecipientGroupListLogicMonitor.RecipientGroupPropertyLogicMonitor.RecycleBinItemListLogicMonitor.RecycleBinItemPropertyLogicMonitor.ReportGroupListLogicMonitor.ReportGroupPropertyLogicMonitor.ReportListLogicMonitor.ReportPropertyLogicMonitor.ResourceAnalysisLogicMonitor.ResourceGroupAnalysisLogicMonitor.RoleListLogicMonitor.RolePropertyLogicMonitor.SdtListLogicMonitor.SdtPercentageLogicMonitor.SdtPropertyLogicMonitor.SingleSignOnPropertyLogicMonitor.SlaWidgetValuesLogicMonitor.SnmpSysOidMapListLogicMonitor.SnmpSysOidMapPropertyLogicMonitor.SummaryValueLogicMonitor.SummaryValueListLogicMonitor.ThresholdLogicMonitor.TrafficTableLogicMonitor.UnmonitoredDeviceListLogicMonitor.UnmonitoredDevicePropertyLogicMonitor.UserApiTokenListLogicMonitor.UserApiTokenPropertyLogicMonitor.UserListLogicMonitor.UserPropertyLogicMonitor.WebsiteCheckpointDataListLogicMonitor.WebsiteCountLogicMonitor.WebsiteGroupAnalysisLogicMonitor.WebsiteGroupCountLogicMonitor.WebsiteGroupListLogicMonitor.WebsiteGroupPropertyLogicMonitor.WebsiteListLogicMonitor.WebsitePropertyLogicMonitor.WidgetStatusMagicSuiteMagicSuite.SubscriptionListMerakiMeraki.CameraImageMeraki.ConfigurationChangeListMeraki.ConnectionMeraki.DevicePropertyMeraki.DeviceUplinkPropertyMeraki.EndOfLifeMeraki.NetworkClientListMeraki.NetworkDeviceListMeraki.NetworkEventListMeraki.NetworkListMeraki.NetworkPropertyMeraki.NetworkSwitchPortsListMeraki.NetworkSwitchStackListMeraki.OrganizationDeviceLicenseListMeraki.OrganizationDeviceLicensePropertyMeraki.OrganizationDeviceListMeraki.OrganizationDeviceListStatusPropertyMeraki.OrganizationInventoryListMeraki.OrganizationLicenseStatePropertyMeraki.OrganizationListMeraki.OrganizationPropertyMeraki.OrganizationUplinkUsageMeraki.WirelessNetworkClientConnectionStatsPropertyMeraki.WirelessNetworkClientLatencyListMeraki.WirelessNetworkClientsConnectionStatsListMeraki.WirelessNetworkClientsLatencyListMeraki.WirelessNetworkConnectionStatsPropertyMeraki.WirelessNetworkDeviceConnectionStatsPropertyMeraki.WirelessNetworkDeviceLatencyListMeraki.WirelessNetworkDevicesConnectionStatsListMeraki.WirelessNetworkDevicesLatencyListMeraki.WirelessNetworkLatencyListMicrosoftDataverseMicrosoftDataverse.ConnectionMicrosoftDataverse.CountMicrosoftDataverse.EntityDefinitionsListMicrosoftDataverse.EntityListMicrosoftDataverse.EntityPropertyListMicrosoftDataverse.ListMicrosoftDataverse.PropertyMicrosoftGraphMicrosoftGraph.ConnectionMicrosoftGraph.MicrosoftDataverseConnectionMicrosoftGraph.QueryObjectObject.ArrayCountObject.PropertyObject.TypeObject.UnpackObject.UnpackVariablesOpenAiOpenAi.AnswerOpenAi.CompleteOpenAi.ConnectionOpenAi.ImageQuickBooksQuickBooks.ConnectionQuickBooks.PropertyReportMagicReportMagic.ApplyBrandReportMagic.BadgeListReportMagic.ConnectionListReportMagic.ConnectionPropertyReportMagic.ConnectionStatusPropertyReportMagic.FeedbackListReportMagic.FeedbackPropertyReportMagic.MacroGroupListReportMagic.MacroHelpReportMagic.MacroListReportMagic.ReportBatchJobCountReportMagic.ReportBatchJobListReportMagic.ReportBatchJobPropertyReportMagic.ReportConnectionSummaryReportMagic.ReportJobCountReportMagic.ReportJobListReportMagic.ReportJobPropertyReportMagic.ReportMacroCountReportMagic.ReportPropertyReportMagic.ReportScheduleCountReportMagic.ReportScheduleListReportMagic.ReportSchedulePropertyReportMagic.SetReportPropertyReportMagic.SystemPropertyReportMagic.TenantImageReportMagic.TopicHelpReportMagic.VersionSalesforceSalesforce.ConnectionSalesforce.ListSalesforce.PropertyServiceNowServiceNow.ConnectionServiceNow.CountServiceNow.CreateServiceNow.DeleteServiceNow.DictionaryServiceNow.ListServiceNow.PropertyServiceNow.UpdateShapeShape.AddShape.CloneShape.DeleteShape.FormatShape.HideShape.SetPropertyShape.SetTextSlackSlack.ConnectionSlack.MessageSlideSlide.DeleteSlide.DeleteSectionSlide.LinkSlide.MoveToSlide.RepeatSmtpSmtp.ConnectionSnmpSnmp.EnterprisePropertySolarWindsSolarWinds.ConnectionSolarWinds.SqlListSolarWinds.SqlTableSqlSql.AnalysisTableTable.ColumnCountTable.DeleteTable.FormatTable.GraphTable.MergeCellsTable.RowCountTable.SaveTable.SortTable.WorldMapTimeCalendarCronHumanReadableCronRunDateDateRangeDateTimeDateTime.IsInWorkHoursDateTime.WorkHoursDurationTimeSpanTogglToggl.ClientListToggl.ClientPropertyToggl.ConnectionToggl.ProjectListToggl.ProjectPropertyToggl.ProjectReportPropertyToggl.TimeEntryListToggl.TimeEntryPropertyToggl.UserListToggl.UserPropertyToggl.WorkspaceListToggl.WorkspacePropertyTwilioTwilio.ConnectionTwilio.SmsUkParliamentUkParliament.PetitionCountUkParliament.PetitionListUkParliament.PetitionPropertyVariableVariable.ImageVariable.ListVariable.PropertyWebWeb.ConnectionWeb.HtmlWeb.ImageWeb.QueryWeb.ScreenshotWeb.TableWeb.TextXlsxXlsx.AddAnalysisXlsx.EmbedZendeskZendesk.ConnectionZendesk.ListZendesk.PropertyZoho.DeskZoho.Desk.ZohoListZoho.Desk.ZohoProperty

[Shape.Format:]UPDATED

Formats a shape in PowerPoint or Word.


Purpose

Formats a shape in PowerPoint or Word. In Word, you cannot currently set a shape's position.


Macro Compatibility

The macro can be used in the highlighted input document types only. A greyed-out icon indicates not supported.


Usage

To use in PowerPoint, insert the macro into the notes (the id parameter then MUST be used), or the shape's text (no id required) or its Alt Text (no id required). To use in Word, insert the macro into the document or the shape - the shape ID (any text) must be set in its Alt Text and the id parameter in the macro must refer to it. NOTE: not supported in Report Studio or HTML input documents. For more information on using macros in PowerPoint, see: PowerPoint help. The help below refers mainly to PowerPoint. Word support will be expanded over time.


What's New

(2025-06-04)

For picture fills, if only one of heightCm or widthCm is specified, the other dimension will be automatically calculated based on the image's aspect ratio.


Parameter TypeDeprecation Message Preferred ParameterPresence Purpose Options Default
pictureFilename
StringConditional The filename (or path relative to the input folder) of the picture to insert into the shape. When set, 'fillType' is automatically set to 'Picture'. When set, do not specify 'fillColor' or pictureVariableSupported file extensions are: '.bmp', '.gif', '.jpg', '.jpeg', '.png', '.svg' or '.emfplus'. Works in PowerPoint and Word. N/A N/A
pictureTransparencyPercent
DoubleConditional The shape's picture transparency. Only has an effect when 'fillType' is set to 'Picture'. Works in PowerPoint and Word.
  • From 0 to 100
N/A
pictureVariable
StringConditional The name of the variable that holds the picture to insert into the shape. Macros that produce graphs can store the data using the 'storeAsHidden' parameter. When set, 'fillType' is automatically set to 'Picture'. When set, do not specify 'fillColor' or pictureFilename. Works in PowerPoint and Word. N/A N/A
comment
StringOptional Add a comment to make your document template more readable. The comment is discarded in the output document. N/A N/A
errorOnOverflow
BooleanOptional Should NCalc expression evaluation throw error on Overflow
  • true
  • false
true
failureText
StringOptional The text to display should the macro fail to execute. Note that a poorly-specified macro (e.g. omitting mandatory parameters) will still result in an error message. N/A N/A
fillColor
ColorOptional The shape's fill color. Can be specified as hex e.g. #FF0000 (with or without the #), or as a known color such as red. You can also use alpha values such as #00FF0000 (full transparent) or #FFFF0000 (fully opaque).When used, 'fillType' is automatically set to 'Solid'. When set, do not specify 'pictureFilename'. Works in PowerPoint and Word. N/A
fillType
PowerPointFillTypeOptional The shape's fill type. When using 'Picture', the picture will always be stretched to fit the shape. Works in PowerPoint and Word.
  • None
  • Pattern
  • Picture
  • Solid
N/A
fontColor
ColorOptional The shape's font color. Can be specified as hex e.g. #FF0000 (with or without the #), or as a known color such as red. Affects all text in the shape. Works in PowerPoint and Word. N/A
fontSizePts
DoubleOptional The shape's font size in points. Affects all text in the shape. Works in PowerPoint and Word. N/A N/A
heightCm
DoubleOptional The shape's height in centimetres (CM). Works in PowerPoint and Word. When not set, the height of the shape is not altered. For picture fills (fillType=Picture), when set and 'widthCm' is not set, the width is automatically calculated based on the image's aspect ratio. N/A N/A
id
List<String>Deprecatedids Specify the ID or IDs of the shapes to format. POWERPOINT: affects shapes on the current slide by default, but you can change the 'Scope' parameter). If not provided, the macro must be in the main text or Alt Text of the shapes to be formatted, otherwise it can be anywhere (Notes, shape text, or Alt Text of a shape). Special case: lines - to format a line, you MUST set an ID in its Alt Text, and use the macro in any other non-line shape's text / Alt Text, or Notes. To edit a shape's Alt Text, right-click on the shape then choose View Alt Text to open the edit panel. NOTE: shape IDs do not need to be unique, i.e. you could set the same ID on multiple shapes, such as SHAPES_TO_FORMAT. WORD: all the above applies, ignoring anything related to slides. N/A N/A
ids
List<String>

Use instead of:

  • id
Optional Specify the ID or IDs of the shapes to format. POWERPOINT: affects shapes on the current slide by default, but you can change the 'Scope' parameter). If not provided, the macro must be in the main text or Alt Text of the shapes to be formatted, otherwise it can be anywhere (Notes, shape text, or Alt Text of a shape). Special case: lines - to format a line, you MUST set an ID in its Alt Text, and use the macro in any other non-line shape's text / Alt Text, or Notes. To edit a shape's Alt Text, right-click on the shape then choose View Alt Text to open the edit panel. NOTE: shape IDs do not need to be unique, i.e. you could set the same ID on multiple shapes, such as SHAPES_TO_FORMAT. WORD: all the above applies, ignoring anything related to slides. N/A N/A
if
StringOptional The condition that must be true in order for the macro to be executed/evaluated. Must either evaluate to true or false, for example: "3+5=8" or "contains('abcd', 'z'). N/A true
mode
MacroModeOptional The mode in which variables are stored. In the legacy mode (default for Schedules), the variable created is a string and formatted. In the normal mode (default for Report Studio), the output variable is stored as a strongly-typed object, e.g. an Int32 or a List etc., rather than a formatted string.
  • Legacy
  • Normal
Legacy
obfuscation
ObfuscationTypeOptional Obfuscation type. Use obfuscation to write reports where sensitive data is hidden. When used, ReportMagic guarantees that the same input string will map to the same output string for the whole of the report (but the next time the report runs, it will most likely map to a different value). If you use obfuscation, the property in your macro will not show up and instead, you will see a fake item of the obfuscation type chosen.
  • None
  • UkTown
  • DeviceName
  • Company
  • IpAddress
  • PrivateIpAddress
None
outlineColor
ColorOptional The shape's outline color. Can be specified as hex e.g. #FF0000 (with or without the #), or as a known color such as red. Works in PowerPoint and Word. N/A
outlineDashType
PowerPointOutlineDashTypeOptional The shape's outline dash type. Works in PowerPoint and Word.
  • Dash
  • DashDot
  • LongDash
  • LongDashDot
  • LongDashDotDot
  • RoundDot
  • Solid
  • SquareDot
N/A
outlineWidthPts
DoubleOptional The shape's outline width in points. Works in PowerPoint and Word. N/A N/A
patternFillBackgroundColor
ColorOptional The shape's pattern fill background color. Can be specified as hex e.g. #FF0000 (with or without the #), or as a known color such as red. Affects all text in the shape. Ignored unless 'fillType' is set to 'Pattern'. When set, you must also set the 'patternType' parameter. Works in PowerPoint and Word. N/A
patternFillForegroundColor
ColorOptional The shape's pattern fill foreground color. Can be specified as hex e.g. #FF0000 (with or without the #), or as a known color such as red. Affects all text in the shape. Ignored unless 'fillType' is set to 'Pattern'. When set, you must also set the 'patternType' parameter. Works in PowerPoint and Word. N/A
patternType
DocumentFormat.OpenXml.PresetPatternValuesOptional The shape's pattern fill type.Ignored unless 'fillType' is set to 'Pattern'. Works in PowerPoint and Word.
  • Cross
  • DarkDownwardDiagonal
  • DarkHorizontal
  • DarkUpwardDiagonal
  • DarkVertical
  • DashedDownwardDiagonal
  • DashedHorizontal
  • DashedUpwardDiagonal
  • DashedVertical
  • DiagonalBrick
  • DiagonalCross
  • Divot
  • DotGrid
  • DottedDiamond
  • DownwardDiagonal
  • Horizontal
  • HorizontalBrick
  • LargeCheck
  • LargeConfetti
  • LargeGrid
  • LightDownwardDiagonal
  • LightHorizontal
  • LightUpwardDiagonal
  • LightVertical
  • NarrowHorizontal
  • NarrowVertical
  • OpenDiamond
  • Percent10
  • Percent20
  • Percent25
  • Percent30
  • Percent40
  • Percent5
  • Percent50
  • Percent60
  • Percent70
  • Percent75
  • Percent80
  • Percent90
  • Plaid
  • Shingle
  • SmallCheck
  • SmallConfetti
  • SmallGrid
  • SolidDiamond
  • Sphere
  • Trellis
  • UpwardDiagonal
  • Vertical
  • Wave
  • Weave
  • WideDownwardDiagonal
  • WideUpwardDiagonal
  • ZigZag
N/A
positionRelativeTo
PowerPointRelativePositionTypeOptional When setting a shape's position (with 'xAxisPositionCm' and 'yAxisPositionCm', it is relative to the shape's top left, or its centre. Not currently supported in Word.
  • TopLeft
  • Centre
TopLeft
rotationDegrees
Int32Optional The shape's rotation in degrees. Works in PowerPoint and Word. N/A N/A
scope
PowerPointScopeTypeOptional Whether to format shapes found on the current slide only, or those anywhere the presentation. Only has an effect when the 'ids' parameter is used, as otherwise the containing shape is formatted. Works in PowerPoint only.
  • Slide
  • Presentation
Slide
screenTip
StringOptional The ScreenTip (tooltip) to be used on shape hyperlinks (only has an effect when the 'url' parameter is set). Works in PowerPoint only. N/A N/A
url
StringOptional The website URL to set on a shape. When used, CTRL-click on the shape takes you to the website in the default browser. Works in PowerPoint and Word. N/A N/A
warning
StringOptional If specified, adds a warning message for this macro. This is processed as an NCalc, and the warning message will ALWAYS be present and will be the value of the evaluated NCalc expression. N/A N/A
widthCm
DoubleOptional The shape's width in centimetres (CM). Works in PowerPoint and Word. When not set, the width of the shape is not altered. For picture fills (fillType=Picture), when set and 'heightCm' is not set, the height is automatically calculated based on the image's aspect ratio. N/A N/A
xAxisPositionCm
DoubleOptional The shape's x-axis position in centimetres (CM), relative to the shape's top left (unless you change the 'positionRelativeTo' parameter). Inspect the PowerPoint document manually to determine the actual width in CM. Not currently supported in Word. N/A N/A
yAxisPositionCm
DoubleOptional The shape's y-axis position in centimetres (CM), relative to the shape's top left (unless you change the 'positionRelativeTo' parameter). Inspect the PowerPoint document manually to determine the actual width in CM. Not currently supported in Word. N/A N/A

Examples (11)

Example 1:

Set the shape's fill color to red using the hex code #FF0000:

[Shape.Format:fillType=Solid, fillColor=#FF0000]

Example 2:

Set the shape's fill color to red and its font size to 30 points:

[Shape.Format:fillColor=#FF0000, fillType=Solid, fontSizePts=30]

Example 3:

Format all shapes on the current slide that have an ID of 'SHAPES_TO_FORMAT' (set in their Alt Text). In this case set the fill color to red:

[Shape.Format:ids=SHAPES_TO_FORMAT, fillType=Solid, fillColor=#FF0000]

Example 4:

Format all shapes anywhere in the presentation that have an ID of 'SHAPES_TO_FORMAT' (set in their Alt Text). In this case set the fill color to blue:

[Shape.Format:ids=SHAPES_TO_FORMAT, fillType=Solid, fillColor=#FF0000, scope=Presentation]

Example 5:

Set a combination of properties on the shape (with transparency for the fill):

[Shape.Format:fillColor=#88FF0000, fillType=Solid, fontColor=white, outlineColor=#00FF00, outlineWidthPts=5, outlineDashType=LongDash]

Example 6:

Insert a .png image into a shape (stretched to fit is the only available option):

[Shape.Format:fillType=Picture, pictureFilename=images/spiderman.png]

Example 7:

Insert a .png image into a shape and specify its width and height in centimetres (the shape will be stretched to fit):

[Shape.Format:fillType=Picture, pictureFilename=images/spiderman.png, widthCm=4, heightCm=3]

Example 8:

Insert a .png image into a shape and specify only the width in centimetres. The height will be automatically calculated based on the image's aspect ratio, and so the image will not appear stretched:

[Shape.Format:fillType=Picture, pictureFilename=images/spiderman.png, widthCm=20]

Example 9:

Insert a .png image into a shape and specify only the height in centimetres. The width will be automatically calculated based on the image's aspect ratio, and so the image will not appear stretched:

[Shape.Format:fillType=Picture, pictureFilename=images/spiderman.png, heightCm=10]

Example 10:

Set a shape's fill to one of the built-in patterns (along with the pattern's background and foreground colours):

[Shape.Format:fillType=Pattern, patternFillBackgroundColor=red, patternFillForegroundColor=black, patternType=SmallCheck]

Example 11:

Set a shape's position, size, and rotation:

[Shape.Format:xAxisPositionCm=5, yAxisPositionCm=10, heightCm=10, widthCm15, rotationDegrees=45]
An unhandled error has occurred. Reload 🗙