Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Connector Script

Connector Script

Connector Script

I'm writing a script for MSO261 and I want it to approve invoices - on the screen it is a button in the menu,
within the Buffer Data I think as
FKEYS2I           (O 60 *** ) = F8-Approve Invoice

Can anyone suggest how I can trigger this off.     

RE: Connector Script

Execute the command "Approve Invoice" as opposed to an "OK" or "Cancel". e.g. ...Screen.MSO.Commands("APPROVE INVOICE").execute
The case of the command text is not important in a Windows COM environment.


RE: Connector Script

As Drw says, the case is not important in a Windows COM environment, but the exact text is.

If Drw's suggested code doesn't work, then add some code to find out exactly what commands are available.

eg. something like this


sFuncKeys = "Commands (Function Keys) on " & Trim$(oMimsx.Screen.MSO.Name) & " are: " & vbCrLf
For iFuncKeys = 1 To oMimsx.Screen.MSO.Commands.Count
  sFuncKeys = sFuncKeys & CStr(iFuncKeys) & " " & oMimsx.Screen.MSO.Commands(iFuncKeys).Name & vbCrLf
Next iFuncKeys
Msgbox sFuncKeys

RE: Connector Script

Thanks for the Information - it's been most helpful

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close