Solved

Custom toolbar in Word interacts with VB

Posted on 1998-12-29
1
277 Views
Last Modified: 2010-05-03
I know you can create a toolbar in Visual C++ and use it as a custom toolbar in Microsoft Word, and when you click on a button of this toolbar, it calls a C++ program. I want to know if I can interact with VB using a custom toolbar in Word
0
Comment
Question by:cotano
1 Comment
 
LVL 3

Accepted Solution

by:
cognition earned 100 total points
Comment Utility
You can write macros in VBA that reference an OLE Server/ActiveX EXE/DLL that is written in VB. The macro can then be assigned to a button on the word toolbar.

You can also programatically install the toolbar button and macro by including it in a document and having a user open it.

You could at a simpler level just use the shell command to call a VB program.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

771 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

12 Experts available now in Live!

Get 1:1 Help Now