Thread: API
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michel Pierron[_2_] Michel Pierron[_2_] is offline
external usenet poster
 
Posts: 63
Default API

Hi Dennis;
If you want to do that in full safety, you can also use:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String _
, ByVal lpParameters As String, ByVal lpDirectory As String _
, ByVal nShowCmd As Long) As Long

Sub ScreenProperties()
Shell "rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3"
End Sub

Regards
MP

"Dennis" a écrit dans le message de
...
Does anyone know if there is an API function to change the
screen resolution? I'd like to be able to switch from
1024x748 to 800x600 and back.