Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
David Lee - NZ
 
Posts: n/a
Default How do I set up a macro to turn on Windows in Taskbar in Excel 200

I have a shared workbook in Excel 2000 that is automatically turning off
Windows in Taskbar whenver it is opened and I can't see why. Does anyone out
there know a macro that will automatically turn on the Windows in Taskbar
option in Excel when the workbook is opened?

Thanks
David Lee
  #2   Report Post  
Charles Maxson
 
Posts: n/a
Default

David

Add the following line code to an Auto_Open or Workbook_Open event:

Application.ShowWindowsInTaskbar = True

*pretty sure that was in Office 2000, I am in 2003 so I wasn't able to
check...

--

Charles
www.officezealot.com



"David Lee - NZ" <David Lee - wrote in message
...
I have a shared workbook in Excel 2000 that is automatically turning off
Windows in Taskbar whenver it is opened and I can't see why. Does anyone
out
there know a macro that will automatically turn on the Windows in Taskbar
option in Excel when the workbook is opened?

Thanks
David Lee



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Is the workbook shared? (A bug in xl2k turns it off for shared workbooks.)

You could create a new workbook saved into XLStart (or put this into your
personal.xls workbook) and it'll toggle that option each time you open a
workbook.

In the ThisWorkbook module:

Option Explicit
Public WithEvents xlApp As Excel.Application
Private Sub Workbook_Open()
Set xlApp = Application
End Sub
Private Sub Workbook_Close()
Set xlApp = Nothing
End Sub
Private Sub xlApp_NewWorkbook(ByVal Wb As Workbook)
Application.ShowWindowsInTaskbar = True
End Sub
Private Sub xlApp_WorkbookOpen(ByVal Wb As Workbook)
Application.ShowWindowsInTaskbar = True
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

David Lee - NZ wrote:

I have a shared workbook in Excel 2000 that is automatically turning off
Windows in Taskbar whenver it is opened and I can't see why. Does anyone out
there know a macro that will automatically turn on the Windows in Taskbar
option in Excel when the workbook is opened?

Thanks
David Lee


--

Dave Peterson
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
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
How to turn OFF the TASK PANE? [email protected] Setting up and Configuration of Excel 3 February 10th 05 06:58 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Turn off warnings in Macro Patti Excel Worksheet Functions 1 January 21st 05 05:47 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 05:52 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"