Solved

Microsoft Office tool bars

Posted on 2003-11-06
2
175 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now