How to Keep an Excel Profit and Loss Summary Visible While Scrolling
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.

- 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.
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.
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.
Go to File > Options > Customize Ribbon. In the right pane, check the box next to 'Developer' and click OK.
Click the Developer tab on the ribbon and select 'Visual Basic' to open the editor.
Click Insert > UserForm. Add Labels or TextBoxes to this form to represent your profit and loss metrics.
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).
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.

Utilize the Excel Watch Window
Use Excel's built-in Watch Window to monitor specific summary cells in a floating panel without writing any code.
Use Freeze Panes
Lock the top rows or first columns of your worksheet so your summary layout remains visible during scrolling.
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. Open Your Data in WPS Spreadsheet: Launch WPS Office and open your stock data workbook.
- 2. Select the Freeze Point: Highlight the row immediately below your profit and loss summary.
- 3. Freeze the Summary Rows: Navigate to the View tab and click 'Freeze Panes' to securely lock the top portion of your screen.
- 4. Use Advanced Developer Tools: Alternatively, access the Developer tab in WPS Spreadsheet to create custom macro-enabled floating windows, just like in Excel.

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.




