+ Reply to Thread
Results 1 to 9 of 9

Windows Visual Style

Hybrid View

  1. #1
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Windows Visual Style

    I would expect for #1 you would need to pick it up from the registry, maybe something like:
    Const HKEY_LOCAL_MACHINE = &H80000002
    Sub macro_1()
    strComputer = "."
    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
    strKeyPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\"
    strValueName = "CurrentTheme"
    oReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue
    MsgBox strValue
    End Sub
    ?

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Windows Visual Style

    Quote Originally Posted by ragulduy View Post
    I would expect for #1 you would need to pick it up from the registry, maybe something like:
    Thanks ragulduy. I tried it and received a Null error on both machines. Thanks for the suggestion anyway.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 11-28-2009, 01:28 AM
  2. UserForm determine WinXP windows style
    By Reinhard Thomann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2005, 12:06 PM
  3. [SOLVED] Range.Resize from Visual Basic in Windows to Excel
    By MMesarch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2005, 12:06 PM
  4. [SOLVED] Windows XP, Excel 2000: ODBC driver for Visual FoxPro tables
    By Arvi Laanemets in forum Excel General
    Replies: 0
    Last Post: 01-24-2005, 05:06 AM
  5. [SOLVED] Excel C# programs with Visual Studio .NET on Windows XP Family Edi
    By Hugues Joly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2005, 10:06 PM

Tags for this Thread

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