Word

Create list of running tasks

Ease of Use

Easy

Version tested with

2000 

Submitted by:

mdmackillop

Description:

A document listing all the tasks running. 

Discussion:

When creating code, it's sometimes handy to see what tasks are running, especially if you're working across applications. This function will list them in a new document. 

Code:

instructions for use

			

Option Explicit Sub ShowTasks() Documents.Add For Each tk In Tasks Selection.TypeText tk.Name & Chr(13) Next End Sub

How to use:

  1. Copy above code.
  2. In Word press Alt + F11 to enter the VBE.
  3. Press Ctrl + R to show the Project Explorer.
  4. Right-click desired file on left (in bold).
  5. Choose Insert -> Module.
  6. Paste code into the right pane.
  7. Press Alt + Q to close the VBE.
  8. Save the document before any other changes.
 

Test the code:

  1. From Word, press Alt + F8 to open the macro dialog box.
  2. Select ShowTasks
  3. Click Run.
 

Sample File:

ShowTasks.zip 4.38KB 

Approved by mdmackillop


This entry has been viewed 163 times.

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express