+ Reply to Thread
Results 1 to 3 of 3

Screen Resolution

  1. #1
    Registered User
    Join Date
    11-21-2007
    Posts
    21

    Screen Resolution

    Hi,

    Is there a way to get the screen resolution in VBA?

    thanks!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon yonyon7

    Is there a way to get the screen resolution in VBA?
    Certainly is :

    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello yonyon7,

    Here is another approach. This uses the Windows Management Instrumentation (WMI) scripting interface. This method can easily allows you access many other monitor settings than just screen size and the monitor name. Place this code in a Standard VBA module.
    Please Login or Register  to view this content.
    Run ShowScreenSize from Excel by typing ALT + F8. Double click ShowScreenSize in the list.

    Sincerely,
    Leith Ross

+ 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