Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Can I access the "Windows in Taskbar" checkbox within a macro?

Can I access the state of the "Windows in Taskbar" checkbox and set it with
VBA code? Something is overriding the setting whenever I start Excel. It
defaults to not showing all of the windows in my taskbar.
--
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Can I access the "Windows in Taskbar" checkbox within a macro?

Hi Rick,

Try:

Application.ShowWindowsInTaskbar = True


---
Regards,
Norman



"Rick S." wrote in message
...
Can I access the state of the "Windows in Taskbar" checkbox and set it
with
VBA code? Something is overriding the setting whenever I start Excel. It
defaults to not showing all of the windows in my taskbar.
--
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Can I access the "Windows in Taskbar" checkbox within a macro?

Works perfect!
--
Thanks


"Norman Jones" wrote:

Hi Rick,

Try:

Application.ShowWindowsInTaskbar = True


---
Regards,
Norman



"Rick S." wrote in message
...
Can I access the state of the "Windows in Taskbar" checkbox and set it
with
VBA code? Something is overriding the setting whenever I start Excel. It
defaults to not showing all of the windows in my taskbar.
--
Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Can I access the "Windows in Taskbar" checkbox within a macro?

Norman,

This works great but it changes behavior for all instances of Excel (I
believe)

is there a way to modify this so it is ONLY for the current instance\session ?

--
Cheers,

Gregory A Jackson
Portland, OR


"Norman Jones" wrote:

Hi Rick,

Try:

Application.ShowWindowsInTaskbar = True


---
Regards,
Norman



"Rick S." wrote in message
...
Can I access the state of the "Windows in Taskbar" checkbox and set it
with
VBA code? Something is overriding the setting whenever I start Excel. It
defaults to not showing all of the windows in my taskbar.
--
Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Can I access the "Windows in Taskbar" checkbox within a macro?

Hi Rick,

Possibly use the Before_Close event of a
workbook that will always be open -
possibly your Personal macro workbook,
to restore the setting.

'===========
Option Explicit

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ShowWindowsInTaskbar = False
End Sub
'<<===========

This is workbook event code and should be
pasted into the workbook's ThisWorkbook
module *not* a standard module or a sheet
module:

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your
workbook is maximised)
Select 'View Code' from the menu and paste
the code.

Alt-F11 to return to Excel.


---
Regards.
Norman


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"minimize multiple excel workbooks on windows taskbar" NC programmer Excel Discussion (Misc queries) 4 April 17th 08 04:22 PM
Excel "Windows in Taskbar" check box Joanne Excel Discussion (Misc queries) 3 March 10th 08 03:10 PM
"Windows in Taskbar" setting is lost everytime I close XL yerk55 Excel Discussion (Misc queries) 1 December 4th 06 05:01 PM
"Show Windows in Taskbar" option from the ToolsOptionsView broke Ben Zapp Excel Discussion (Misc queries) 0 November 9th 05 07:40 PM
"Programmatic Access to be Denied" displays when running macro on excel in XP Stephen Fong Excel Programming 3 October 21st 03 09:19 AM


All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"