![]() |
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 |
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 |
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 |
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 |
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 |
All times are GMT +1. The time now is 10:26 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com