Different Monitor/Different Resolution

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All,

I have this problem where i have designed my spreadsheet/Template on 18inch monitor.

Now if i were to view this on a bigger or smaller monitor, the whole spreadsheet looks either too small or big and messes up the whole look of the spreadsheet. Is there a way i can show my spreadsheet exactly the same way i designed it on my screenon all computers?

I am using excel 2007

Many Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If the screen resolution and physical hardware ratio of the monitor is the same then the spreadsheet should look the same on all monitors.
What are thee details of the monitors where they appear to be different, ie screen resolution, display ratio?
 
Upvote 0
If the screen resolution and physical hardware ratio of the monitor is the same then the spreadsheet should look the same on all monitors.
What are thee details of the monitors where they appear to be different, ie screen resolution, display ratio?

Hi I am not sure what the screen resolution, display ratio is

How can i check to see what they are set at?
 
Upvote 0
All i know is that my screen monitor i use at work is a 22inch and the spreasheet is at 100%

My Monitor at home is 26inch
 
Upvote 0
Try running GetScreenSize

Code:
Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Const HORZRES = 8
Const VERTRES = 10


Sub GetScreenSize()
    MsgBox ScreenResolution()
End Sub

Function ScreenResolution()
Dim lRval As Long
Dim lDc As Long
Dim lHSize As Long
Dim lVSize As Long

lDc = GetDC(0&)
lHSize = GetDeviceCaps(lDc, HORZRES)
lVSize = GetDeviceCaps(lDc, VERTRES)
lRval = ReleaseDC(0, lDc)
ScreenResolution = lHSize & "x" & lVSize
End Function
 
Upvote 0
Try running GetScreenSize

Code:
Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Const HORZRES = 8
Const VERTRES = 10


Sub GetScreenSize()
    MsgBox ScreenResolution()
End Sub

Function ScreenResolution()
Dim lRval As Long
Dim lDc As Long
Dim lHSize As Long
Dim lVSize As Long

lDc = GetDC(0&)
lHSize = GetDeviceCaps(lDc, HORZRES)
lVSize = GetDeviceCaps(lDc, VERTRES)
lRval = ReleaseDC(0, lDc)
ScreenResolution = lHSize & "x" & lVSize
End Function


Hi I get,

1680 x 1050

How i can i set it to be the same resolution or the exact way i have set it up regardless of what computer/Monitor i open the spreadsheet on?

Many Thanks
 
Upvote 0
I'm a bit puzzled as to why the rcreen resolution is affecting the display of an Excel sheet unless you have code like the following

Code:
Sub FitToScreen()
Range("A1:H10").Select ' change range as appropriate
ActiveWindow.Zoom = True
End Sub
 
Upvote 0
Hi,

I tried this function at home and it shows 1280 x 1024 and at work 1680 x 1050. It shows bigger on my computer at home so to make it fit i need to change the zoom at home to 85% but this makes the writing smaller.

What am i doing wrong
 
Upvote 0
Hi Vog, any luck with this. This spreadsheet has no code in it.

I tried this function at home and it shows 1280 x 1024 and at work 1680 x 1050. It shows bigger on my computer at home so to make it fit i need to change the zoom at home to 85% but this makes the writing smaller.
 
Upvote 0
Sorry to be a pain Vog

Any chance or luck with the above

Thank You
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

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