How to Remove the Scrollbar from an Embedded Microsoft Form
Question details
The user wants to remove the vertical scrollbar that appears when a Microsoft Form with varying section heights is embedded in a webpage.

- Product
- Microsoft Forms
- Device & OS
- not provided
- Scenario
- Embedding a multi-section Microsoft Form into a website or web platform using an iframe.
- Observed behavior
- A vertical scrollbar appears because the form's sections have different heights, and Microsoft Forms lacks a dynamic resizing feature or accessible VBA controls in the browser.
Ensure you have editing access to the HTML source code of the webpage where the Microsoft Form is embedded, as you will need to modify the iframe attributes manually.
Adjust the iframe Height Attribute in the Embed Code
Since Microsoft Forms cannot dynamically resize, manually increasing the iframe's fixed height in your web editor is the best way to hide the scrollbar for longer sections.
Microsoft Forms does not provide a dynamic height adjustment for embedded forms. By modifying the default iframe embed code, you can set a height large enough to accommodate your tallest form section without triggering the internal scrollbar.
Open your form in Microsoft Forms, click 'Collect responses', select the 'Embed' (< />) icon, and copy the provided HTML code.
Navigate to your website's CMS or HTML editor and paste the embed code into the desired location on your webpage.
In the pasted iframe code, look for the height attribute, which is typically set to a default value like height="480px".
Change the height to a larger number (e.g., height="800px") and preview the page. Continue adjusting this number until the scrollbar disappears for all sections of your form.

Understand the Limitations of VBA Control Properties
Clarifies why Office VBA Control Properties cannot be used to modify the behavior of a web-based Microsoft Form.
Looking for a seamless document and form experience? Try WPS Office
While Microsoft Forms has strict limitations regarding embed customization, managing your overall productivity shouldn't be difficult. WPS Office provides a free, lightweight suite that allows you to handle documents, spreadsheets, and presentations efficiently, making it the perfect alternative for all your office needs.
- 1. Download the Installer: Visit the official WPS Office website and click the download button to get the free installation file.
- 2. Install WPS Office: Run the downloaded file and follow the simple on-screen instructions to install the suite on your device.
- 3. Open Your Files Instantly: Launch WPS Office and open your existing Word, Excel, or PowerPoint documents seamlessly without any formatting loss.

Frequently Asked Questions
Why doesn't the VBA Control Properties dialog box appear in Microsoft Forms?
Microsoft Forms is a purely web-based service and does not support Microsoft Office VBA (Visual Basic for Applications). The Control Properties dialog box is exclusively available for ActiveX or form controls used within desktop applications like Excel or Access.
Can an embedded Microsoft Form automatically adjust its height based on the active section?
No, Microsoft Forms does not natively support dynamic resizing for its iframe embed code. Because the form is hosted on a different domain (cross-domain), web browsers block scripts that would normally allow an iframe to auto-resize based on its internal content height.
What happens if I set the iframe height to 'auto' in the HTML code?
Standard HTML iframes do not respond as expected to a height value of 'auto' when displaying cross-domain content. The browser will usually default to a small static height (like 150px), which will immediately trigger the scrollbar. You must use a fixed pixel value (e.g., '800px').




