Microsoft Office Tutorials and References
In Depth Information
Creating a Folder Tree Menu
ToolbarTarget
The toolbar to which the menu should be added
¾
ButtonName
The caption for the new button
¾
3. To add a file extension to a category of recognized file extensions (xml to
be opened like a document, for example), edit the procedure
'GetFileType'.
4. Locate the Case code line for the category to which the extension should
be appended.
5. Type a comma, a space, then the extension in "quotes", as in the
example below, where xml is added after csv.
Select Case ext
Case "doc", "dot", "htm", "html", _
"rtf", "txt", "csv", "xml"
6. If running Word 2002/2003 and including icons next to the file names,
copy the 'AddButtonPicture' procedure to the same module, or to
another module. Add the Const declaration to the top of the same
module and edit the path to the folder where the bitmaps are located.
Copy the bitmap files from the CD to that folder.
If running Word 2000 or previous versions, adding pictures cannot be
done using the technique in 'AddButtonPicture'. In this case, leave it off
completely or place it in a different module so that, if upgraded to a
more recent Word version, it becomes available.
Wrd
Note: In order for the macro to work reliably, make sure the display of file
extensions is enabled on the computer. In Windows Explorer, go to Tools |
Folder Options | View and deactivate the checkbox ‘Hide extensions for known
file types’.
7. In order to remove the set of menus entirely, run the procedure
'DeleteTree'.
8. To add additional sets of menus, simply change the information in the
Const declarations at the top of the module.
Search JabSto ::




Custom Search