+ Reply to Thread
Results 1 to 7 of 7

Dimming The Desktop

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Dimming The Desktop

    The attached project (downloaded from the Net) dims the Excel window/work area.

    I'm not familiar with API calls.

    How would this code be modified to dim the computer desktop instead ? And, once accomplished ... would dimming the desktop prevent temporarily moving a file from a directory on the C Drive
    to the desktop, then moving it back again to the originating directory ?

    Thank you!
    Last edited by Logit; 09-19-2016 at 12:02 PM.

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

    Re: Dimming The Desktop

    Hello Logit,

    There is a problem with your file. It crashes Excel when it opens. Please remove the file and post your code instead. Improper API code can be very dangerous to run.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  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

    Re: Dimming The Desktop

    Hello Logit,

    There is a problem with your file. It crashes Excel when it opens. Please remove the file and post your code instead. Improper API code can be very dangerous to run.

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Dimming The Desktop

    Hey Leith:

    That's strange. The project runs fine on my computer. No problem at all.

    I wonder if anyone else is having the same difficulty ?

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Dimming The Desktop

    It does indeed crash my computer as well. It is perhaps an issue with opening initially in protected view.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  6. #6
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Dimming The Desktop

    Crashes on 2010, runs OK on 2013 & 2016 plus 2007 running under XP.

    When it crashes, it displays a '400' error much like this. This is a general 'Illegal Operation' error which can apply to just about anything (like the VBA 1004 error), but does not occur in the VBA code so is untrapppable.
    Last edited by cytop; 09-19-2016 at 04:41 AM.

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Dimming The Desktop

    Ok ... thank you for the heads up. I've removed the project attachment. Please understand it was not my code/project. It functions well on my system and thought it would be ok for anyone else, especially since the author (John Walkenbach) is well versed in VBA/Excel.

    I apologize for any confusion.

    Having said that, does anyone know how to dim the desktop ?

+ 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. Desktop
    By RJ1969 in forum Office 365
    Replies: 1
    Last Post: 05-03-2016, 09:51 PM
  2. Desktop to Nexus
    By ADMfocus in forum Excel General
    Replies: 4
    Last Post: 04-27-2014, 02:04 AM
  3. DIMming / setting multiple ranges by iterating over an array of string elements
    By brownfox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2013, 08:14 PM
  4. [SOLVED] dimming text
    By shovelhead69 in forum Excel General
    Replies: 1
    Last Post: 06-13-2006, 02:55 PM
  5. [SOLVED] defaulting to the desktop
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2005, 02:20 PM
  6. Accessing the Desktop
    By Raman325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2005, 02:58 PM
  7. Save .xls as .txt In DeskTop
    By Antonyo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2005, 09:05 AM

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