Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra manipulates Word or Excel

Status
Not open for further replies.

tweddell

IS-IT--Management
Dec 15, 2003
2
US
I'm sure this is a rookie question... But...

I'm writing a macro in Extra. It opens a Word (or Excel) document.
When I put some VBA commands (such as (if I remember correctly), HorizontalAlign etc. They compile in Attachmate but don't seem to have any effect on the Paragraph in the Word Document. (I've looked in various O'Reilly books, Word Macro's, Excel Macro's and the VB, VBA book)but I think perhaps I'm not grasping the Object concept correctly.

The general question is: Why do scripts compile in Attachmate but fail to execute properly in Word?

Any thoughts would be welcome!

Thank you,
Tom Weddell
 
They compile correctly because EB sees that you are manipulating an external object and assumes you know what you're doing. In other words your code is fine in EB, but it fails in VBA where the object lives.

I'd suggest you post some code and we can probably help, or you may want to hit the VBA forum for more assistance with the objects.

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top