Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How to change resolution of monitor/screen

I want to give the user an option to change the resolution of the monitor
(800x600 - 1024x768) etc.
Is there a code I could use to do that? (using Excel 2000)


TIA
Glen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default How to change resolution of monitor/screen

Your best bet may be to let the user do it through the Windows user
interface. You can pop open the Display Properties dialog like this:

Sub a()
SendKeys "^{Pgup}"
Shell "rundll32 shell32,Control_RunDLL desk.cpl"
End Sub

The purpose of the SendKeys is to switch to the Settings tab of the dialog.
It works for me but is never completely reliable. I haven't found another
way to open the dialog to this tab but that doesn't mean there isn't one.


--
Jim Rech
Excel MVP


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable screen size, not resolution Molly Excel Worksheet Functions 4 June 7th 08 12:32 AM
Excel 2003 rdp screen resolution Stefan Triep Excel Discussion (Misc queries) 0 October 15th 07 12:45 PM
Excel resizes screen resolution upon opening. How to fix? healthyfatboy Excel Discussion (Misc queries) 4 October 27th 06 01:34 PM
How to get fixed size for every screen resolution? chartSize Charts and Charting in Excel 0 October 5th 06 03:36 AM
Excel screen resolution query Jeff Smith[_2_] Excel Programming 6 September 16th 03 11:33 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"