# How to embed Smartsheets in Confluence using the HTML Macro

#### Still need help?

The Atlassian Community is here for you.

Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.

HTML macros are disabled by default

The HTML macro will only be available if it has been enabled by an administrator. Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.

This macro is available in Confluence Server and Data Center. Learn about the macros available in Confluence Cloud.

Add the HTML macro to a page to embed content from an external website.  For example you can use this macro to embed content from your company website, or a web-based tool.

This is a legacy macro, and is often disabled by Confluence administrators for security reasons.

## Security considerations

HTML macros are disabled by default

The HTML macro will only be available if it has been enabled by an administrator. Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.

To add the HTML macro to a page:

1. From the editor toolbar, choose Insert > Other Macros.
2. Choose HTML from the Development category.
3. Choose Insert
4. Paste the HTML embed code from the website you want to display into the body of the macro.

You can then publish your page to see the macro in action.

## Change the macro parameters

This macro has no parameters.

## Enabling the HTML Macro

The HTML macro is disabled by default. You'll need Confluence Administrator or System Administrator permissions to enable this macro.

Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks. You should only turn on these macros if you trust all your users not to attempt to exploit them. We strongly recommend leaving this macro disabled if you allow self-signed up or anonymous users to create content.

To enable the HTML macro:

1. Go to > Manage apps.

2. Select System from the drop down and search for the Confluence HTML Macros system app.
3. Expand the listing and enable the html (html-xhtml)  module.

## Other ways to add this macro

#### Add this macro as you type

Type followed by the start of the macro name, to see a list of macros.

#### Add this macro using wiki markup

This is useful when you want to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: html

Macro body: Text, consisting of HTML code.

{html}<a href="http://www.atlassian.com">Click here</a> to see the <b>Atlassian</b> website.{html}

## Purpose

The article will provide some steps to embed Smartsheets in a Confluence page using the HTML Macro.

## Solution

• Enable the HTML Macro
• Publish your Smartsheet by following the guidelines. You should end up with a publicly accessible URL
• Log in to Confluence and go to the page where the Smartsheet needs to be included
• Edit the page.
• Add an HTML Macro on the page and add the following iFrame, making sure to change the URL you got in the previous step to the SRC parameter:

<IFRAME WIDTH=1000 HEIGHT=700 FRAMEBORDER=0 SRC="insert publish view link from smartsheets"></IFRAME>

You can change the width and height you want the Smartsheet to use by changing the WIDTH and HEIGHT parameter.