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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

CriscoSystems

Technical User
May 22, 2009
1
US
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:
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top