Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How To Run Word Macro From Powerbuilder

Posted on 2003-11-10
2
Medium Priority
?
1,532 Views
Last Modified: 2013-12-26
1. how can i run any macro of word from powerbuilder

this line is not working ;

ole_1.run("MacroName:=Macro1")
                OR
ole_1.run("Macro1")

to run a macro i found this line in Word ;

Application.Run MacroName:=Macro1

2. Is there some way that a macro is run automatically; as soon as word document is opened, no other user interference should be required to run the macro
         OR
as soon as following line opens the word document

ole_3.documents.open("d:\Merge.doc")

thanks,
Rao.
0
Comment
Question by:shafiqrao
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
shafiqrao earned 0 total points
ID: 9720558
i figured it out my self here is teh solution

///////////////////////////////////////////////////////////////////
oleObject ole_3
ole_3 = CREATE OLEObject
ole_3.ConnectToNewObject("word.application")
ole_3.documents.open("d:\Merge.doc")
ole_3.run("Macro1")
//////////////////////////////////////////////////////////////////
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

609 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