How To Activate the full-screen feature and disable the window resize button of an Excel workbook?
Tags: toactivatethefullscr, vbamacros
Published: 2021-10-19 05:08:20

---
title: How To Activate the full-screen feature and disable the window resize button of an Excel workbook?
published: true
date: 2021-10-18 05:46:07 UTC
tags: ToActivateTheFullScr,VBAMacros
canonical_url: https://geekexcel.com/how-to-activate-the-full-screen-feature-and-disable-the-window-resize-button-of-an-excel-workbook/
---

In this tutorial, we will guide you on how to  **activate the Full-Screen feature and disable the Window resize button of an Excel Workbook ** using VBA in Excel. Let’s get them below!! Get an official version of MS Excel from the following link: **[https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)**

## Example

- Firstly, you need to **create a button** in Excel Worksheet.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Create-Button.png)<figcaption>Create Button</figcaption>

- In the Excel Worksheet, you have to go to the  **Developer Tab.**
- Then, you need to ** ** select the  **Visual Basic**  option under the  **Code**  section.

![Select Visual Basic](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/09/Select-Visual-Basic-9-1024x180.png)<figcaption>Select Visual Basic</figcaption>

- Now, you have to  **copy and paste the code**  given below.

```
Option Explicit
Sub ActivatingFullScreen()
'Activating full screen
Application.DisplayFullScreen = True
End Sub
'Enter below code in ThisWorkbook module
Private Sub Workbook_WindowResize(ByVal Wn As Window)
'Changing window state to maximum size
Wn.WindowState = xlMaximized
Application.DisplayFullScreen = True
End Sub

```

- After that, you need to  **save the code**  by selecting it and then  **close the window**.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Save-the-Code-51.png)<figcaption>Save the Code</figcaption>

- Again, you have to go to the  **Excel Spreadsheet** , and click on the  **Developer Tab**.
- Then, you need to choose the  **Macros option**  in the Code section.

![Choose Macro option](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/09/Choose-Macro-option-11-1024x184.png)<figcaption>Choose Macro option</figcaption>

- Now, you have to make sure that your  **macro name is selected**  and click the  **Run ** button.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Run-the-Code-43.png)<figcaption>Run the Code</figcaption>

- Finally, after clicking the Full-screen button, you will receive **output** as a **fullscreen window** in Excel.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Output-24-873x1024.png)<figcaption>Output</figcaption>

## A Brief Summary

We hope that this tutorial gives you guidelines on how to  **activate the Full-Screen feature and disable the Window resize button of an Excel Workbook**  using VBA in Excel. Please leave a comment in case of any  **queries,**  and don’t forget to mention your valuable  **suggestions**  as well. Thank you so much for Visiting Our Site!! Continue learning on **[Geek Excel](https://geekexcel.com/)!! **Read more on [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

**Read Ahead:**

- **[How to Resize a Table in Excel ~ A Complete Tutorial!!](https://geekexcel.com/resize-a-table-in-excel/)**
- **[Resize All Charts using Macros (VBA) in Excel Office 365!!](https://geekexcel.com/resize-all-charts-using-macros-vba-in-excel-office-365/)**
- **[Ribbon Keyboard Shortcut Keys in Microsoft Excel 365!!!](https://geekexcel.com/ribbon-keyboard-shortcut-keys-in-microsoft-excel-365/)**
- **[Auto Resize Comment Boxes to Fit the Contents in Excel Office 365!!](https://geekexcel.com/auto-resize-comment-boxes-to-fit-the-contents-in-excel-office-365/)**
- **[How to Enable Wrap Text Feature in Excel Office 365? – Quick Steps](https://geekexcel.com/how-to-enable-wrap-text-feature-in-microsoft-excel-365/)**