Solved

Microsoft Office tool bars

Posted on 2003-11-06
2
180 Views
Last Modified: 2010-05-03
hey guys, I'm wanting to write a program that working with the Microsoft Office suite that will allow me to add a tool bar to in Office.  I want the tool bar to do things like send documents over the network for document managment and a number of other things.  Any links or code would really help, I've never programed for Office before.


Thanks
0
Comment
Question by:Uzaree
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 50 total points
ID: 9700429
Here's your starter for programatically creating a temporary CommandBar and a button on it. It's been tested in Word VBA.

Dim Button As CommandBarButton
CommandBars.Add "MyBar", , , True
Set Button = CommandBars("MyBar").Controls.Add(Type:=msoControlButton)
Button.OnAction = "MyMacro"
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Paint/Redraw window while dragging 16 82
Copy a row 12 64
VB6 - Convert HH:MM into Decimal 8 62
VBA to find and replace multiline text from VBA modules 8 64
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question