Excel Performance Problems

How to Keep an Excel Profit and Loss Summary Visible While Scrolling

Steven ParkerSteven Parker Nov 3, 2026 869 views

Question details

The user needs a way to keep a continuously updated profit-and-loss summary visible in a fixed position while scrolling through extensive stock data.

How to Keep an Excel Profit and Loss Summary Visible While Scrolling
Product
Microsoft Excel
Device & OS
not provided
Scenario
Reviewing and navigating through large sets of stock market data where referencing a dynamic, real-time profit and loss summary is essential.
Observed behavior
The user wants a summary section to remain persistent and floating on the screen so it does not disappear when scrolling horizontally or vertically.
Before you start

Ensure your workbook is saved as an Excel Macro-Enabled Workbook (.xlsm) if you intend to use VBA, and verify that the Developer tab is enabled on your ribbon.

Solution 1Recommended

Create a Floating UserForm with VBA

Use a VBA UserForm to create a floating window that displays your linked summary data, staying visible no matter where you scroll.

This method involves the Developer tab and simple VBA code to keep critical metrics floating securely above your active worksheet.

1
Enable the Developer Tab

Go to File > Options > Customize Ribbon. In the right pane, check the box next to 'Developer' and click OK.

2
Open the VBA Editor

Click the Developer tab on the ribbon and select 'Visual Basic' to open the editor.

3
Insert a UserForm

Click Insert > UserForm. Add Labels or TextBoxes to this form to represent your profit and loss metrics.

4
Link Data to the Form

Write VBA code within the form's initialization event to pull values directly from your summary cells (e.g., TextBox1.Value = Sheets("Sheet1").Range("A1").Value).

5
Display the Form as Modeless

Run the UserForm using the code 'UserForm1.Show vbModeless'. The 'vbModeless' attribute ensures you can still click and scroll through the worksheet while the window floats.

Create a Floating UserForm with VBA
Modeless View: Setting the UserForm to modeless is the key step. It prevents the form from locking your screen, allowing full navigation of your stock data.

Lock and Monitor Your Data Seamlessly in WPS Spreadsheet

WPS Office provides highly intuitive tools, including powerful Freeze Panes and full VBA support, making it incredibly easy to keep your profit and loss summaries visible while navigating large datasets.

  1. 1. Open Your Data in WPS Spreadsheet: Launch WPS Office and open your stock data workbook.
  2. 2. Select the Freeze Point: Highlight the row immediately below your profit and loss summary.
  3. 3. Freeze the Summary Rows: Navigate to the View tab and click 'Freeze Panes' to securely lock the top portion of your screen.
  4. 4. Use Advanced Developer Tools: Alternatively, access the Developer tab in WPS Spreadsheet to create custom macro-enabled floating windows, just like in Excel.
Fully compatible with Microsoft Excel formats (.xlsx, .xlsm, .csv).One-click Freeze Panes to effortlessly lock summary rows and columns.Robust Developer tools supporting custom VBA floating forms.Lightweight and incredibly fast, even when handling massive stock market datasets.
microsoft office alternative - wps office

Frequently Asked Questions

Can I keep an Excel chart visible while scrolling?

Yes, you can place the chart within the top rows of your sheet and use the Freeze Panes feature to lock those rows. Alternatively, VBA can be used to dynamically update a chart's position as you scroll.

Why is the Developer tab missing from my Excel ribbon?

The Developer tab is hidden by default to simplify the interface. You can enable it by navigating to File > Options > Customize Ribbon, and checking the Developer box in the right-hand column.

Does the Watch Window save with my workbook?

Yes, any cells you add to the Watch Window are saved with your workbook. They will automatically appear in the Watch Window the next time you open the file.

What does 'vbModeless' mean in VBA?

Using 'vbModeless' when displaying a UserForm allows you to continue clicking, editing, and scrolling through your Excel worksheet while the form remains open and visible on your screen.