Others

How to Remove the Scrollbar from an Embedded Microsoft Form

Adam DavisAdam Davis Nov 3, 2026 869 views

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.

How to Remove the Scrollbar from an Embedded Microsoft Form
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.
Before you start

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.

Solution 1Recommended

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.

1
Copy the Embed Code

Open your form in Microsoft Forms, click 'Collect responses', select the 'Embed' (< />) icon, and copy the provided HTML code.

2
Paste into Your Web Editor

Navigate to your website's CMS or HTML editor and paste the embed code into the desired location on your webpage.

3
Locate the Height Attribute

In the pasted iframe code, look for the height attribute, which is typically set to a default value like height="480px".

4
Increase the Pixel Value

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.

Adjust the iframe Height Attribute in the Embed Code
Fixed Height Limitations: While a larger iframe height removes the internal form scrollbar, exceptionally long forms may still require the user to use the main browser scrollbar to view the entire page.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the download button to get the free installation file.
  2. 2. Install WPS Office: Run the downloaded file and follow the simple on-screen instructions to install the suite on your device.
  3. 3. Open Your Files Instantly: Launch WPS Office and open your existing Word, Excel, or PowerPoint documents seamlessly without any formatting loss.
Fully compatible with Microsoft Office formats, including DOCX, XLSX, and PPTX.Includes comprehensive built-in tools for data collection, PDF editing, and document formatting.Free, lightweight, and features a familiar tabbed interface for a zero-learning-curve transition.
microsoft office alternative - wps office

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').