+ Reply to Thread
Results 1 to 17 of 17

Reset Screen Resolution

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Reset Screen Resolution

    Tlafferty,

    The data type IS Long; see the DIM statement. However, trying your code, I STILL get the Error 13 Type Mismatch.

    Sorry, I forgot there ARE other parts.Add this to your module:
    Option Explicit
     
    Private Declare Function GetSystemMetrics Lib "user32.dll" (ByVal nIndex As Long) As Long
    Const SM_CXSCREEN = 0
    Const SM_CYSCREEN = 1
    and add this to ThisWorkbook
    Option Explicit
     
    Private Sub Workbook_Open()
         
        Call VerifyScreenResolution
         
    End Sub
    Last edited by jomili; 04-27-2011 at 10:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1