+ Reply to Thread
Results 1 to 7 of 7

Minimize Excel window but keep it visible in the Taskbar

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    Florida
    MS-Off Ver
    Office 2010
    Posts
    4

    Minimize Excel window but keep it visible in the Taskbar

    I'm working on an Excel workbook that is opened by a batch file, updates information, copy and pastes that information to PowerPoint, and closes itself after spending two minutes idle. This is all for an employee communication monitor that runs 24/7. However, I don't like that the Excel spreadsheet displays on the monitors for two minutes every time it opens and runs.

    Right now I was using the bit of code below to minimize the workbook when it was done copying and pasting the information. It works fine for the monitors, but the application is not visible in the Taskbar. That might cause problems later on if somebody else needs to update anything in the spreadsheet.

    Sub Workbook_Open()
    ...
    Application.Visible = False
    End Sub

    Is there anyway to minimize the workbook while keeping the window visible in the taskbar?
    Last edited by kdsteinman; 06-30-2014 at 08:17 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Minimize Excel window but keep it visible in the Taskbar

    Hi kdsteinman and welcome,

    Try:
    Please Login or Register  to view this content.
    Options include:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    Florida
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Minimize Excel window but keep it visible in the Taskbar

    I did that originally but it only minimized the worksheet, not the entire Excel window. I want to display the desktop.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Minimize Excel window but keep it visible in the Taskbar

    With a file named Book1.xls (using Excel 2003 on a Vista 32 bit system) that has the code ( Application.WindowState = xlMinimized) in Workbook_Open :

    a. Double click on Book1.xls. Excel file is opened and runs minimized.

    b. Double click on RunBook1.bat. Excel file is opened and runs minimized.
    Please Login or Register  to view this content.
    c. Double click on RunBook2And1.bat. Excel file(s) are opened and both are minimized. Book2.xls is an ordinary Excel file with NO Workbook_Open() code.
    Please Login or Register  to view this content.
    c. Double click on RunBook1And2.bat. Book1 is minimized. Book2 is visible. Book2.xls is an ordinary Excel file with NO Workbook_Open() code.
    Please Login or Register  to view this content.
    Lewis

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    Florida
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Minimize Excel window but keep it visible in the Taskbar

    That looks like it would work, but because of account restrictions (this is for work and they highly restrict everything, I can't even look in C:\) I can't use the START command. Is there another command that works similarly?

    Correction: I can actually use START on that computer, so that looks like a solution. Thank you very much!
    Last edited by kdsteinman; 06-27-2014 at 10:50 AM.

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Minimize Excel window but keep it visible in the Taskbar

    I'm glad that you seem to have a fix.

    I was able to find the following VBA code (thank you Leith Ross) that works using Excel 2003 on my Vista 32 bit system. The 64 bit conditional compilation (added by me) has never been tested.

    Please Login or Register  to view this content.
    Lewis

  7. #7
    Registered User
    Join Date
    06-27-2014
    Location
    Florida
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: Minimize Excel window but keep it visible in the Taskbar

    Thank you very much.

    As it turned out, my boss decided he just wanted a button human users could push to stop all macros so that we could set the excel file to close itself after 30 seconds unless the macros were stopped.

    Now we all get to feel like bomb defusers

+ 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. How to minimize the Excel window while the Macro is running ?
    By Ndt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2013, 03:56 PM
  2. minimize userform to windows taskbar
    By dulitul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2013, 06:27 PM
  3. Minimize Excel to taskbar
    By D.S. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2006, 03:30 PM
  4. [SOLVED] Minimizing excel window grays it out on taskbar
    By Sysop in forum Excel General
    Replies: 0
    Last Post: 12-05-2005, 02:10 PM
  5. Replies: 3
    Last Post: 07-26-2005, 02:05 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