Keep small window always on top of main workbook

xtapalat

New Member
Joined
Aug 8, 2010
Messages
15
I am running a budget model schools through excel in which there are multiple tabs into which I enter the inputs (e.g. #of students enrolled, maintenance cost/square foot, english department budget, etc.) and a single tab on which the output budget is calculated and summarized. The challenge with working with any budget is calibrating the assumptions so that the output tab is ultimately balanced.

To help me do that, what I want is to be able to create a small window that displays my output tab and have it always be on top in the upper righthand corner of my screen as I am working through the input tabs. That way, as I am changing the individual assumptions, I can tell immediately what the impact is on the bottomline and whether the budget is in or out of balance.

I can create the new window (View/New Window), resize it, and move it to the top right of the screen easily. The problem I am having is getting it to stay on top even when I am working on a different window (in my case the main excel window that is displaying all of the assumptions tabs). Any thoughts on how I would do that?

Thanks,
Bryan
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
This will be tricky as you are asking Excel to modify how it maintains window focus, which ultimately affects what receives any given command.

I suppose if you're cloning your view window as described, then you could do something like
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
For Each Window In Application.Windows
    With Window
        If Right(.Caption, 2) = ":2" Then
        Window.Activate
        End If
    End With
Next
End Sub
Assuming that the :2 window is the summary, though the switching window focus may get irritating during data input.

The other path is to create a non-modal userform and push your summary values to that.
 
Upvote 0
Thanks, Tweedle. I think what I'm going to want to do is create the non-modal user form. I've begun researching how to do that and might post back if I run into obstacles. From what I've read so far, it looks like the spreadsheets control would do the trick and I just need to figure out the mechanics.

Appreciate you pointing me in the right direction.

-Bryan
 
Upvote 0
Thanks. I'd never used the camera tool before. It's great. The one drawback for what I'm trying to do is that it doesn't seem to be able to float. As I scroll down the inputs page, the camera window I've created moves up the screen and eventually out of site. While I was trying to figure out how to use the camera tool, I came across a function called the Watch Window (Formulas/Formula Auditing). It does float in upper righthand corner of my screen and lets me enter specific cells in the workbook whose value I want to track. It's not perfect in that it displays a lot of information I don't care about, but it is a crude way to accomplish what I'm trying to do without much work. If there is a way to make the camera tool float, I'd love to hear it. I'll also continue reseaching how to create the custom user form.

Best,
Bryan
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,546
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top