×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

Can't my users use their session w/macro running in background?

Can't my users use their session w/macro running in background?

Can't my users use their session w/macro running in background?

(OP)
Hi folx

I'm pretty new to the Attachmate incarnation of VBA (I was a never quite the whiz with other VBA's either...) and I have a little thing written to speed up the schleppy keystrokes we have to use to navigate CA7 in our mainframe environment. Type in a batch job name in my UserForm, and you can click the "LJOB" button or the "LRLOG" button or the "XQ" button and away you go; you don't have to keep hitting HOME and typing LRLOG,JOB=jobname,SPAN=200 - one click does it all for you.

My macro so far is doing all the things I want it to, except when it's running, the actual session screen is locked. I want to be able to type a few things in (to the mainframe, not to my UserForm), tap a few function keys etc and still have the functionality of my macro available at a click, without having to re-instantiate it.

I thought maybe that UnlockInput method was the way to go, so my Initialize event, in its entirety, looks like this:

CODE --> VBA

Private Sub UserForm_Initialize()

Set term = ThisIbmTerminal
Set thisscreen = ThisIbmScreen
thisscreen.UnlockInput

txtJOBNAME.SetFocus
UserForm1.Width = 148

End Sub 

Is UnlockInput not supposed to do what I think it's supposed to do? If not, what can I do to make my terminal session user-usable while my macro is running?

Thanks.

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