Here's an excerpt of macroA, which both of you two's advice helped update:
Global g_Acct
......
Sess0.Screen.Sendkeys("<home>qcus<enter>") ' Get acct#
Sess0.Screen.WaitHostQuiet(g_HostSettleTime)
g_Acct = Sess0.Screen.GetString(4,60,15)
If Right(g_Acct,1) <> "_" then...
Skie,
Hmm. I may try that. When macroB runs and takes the user to a certain screen to pull StringC, I've noticed that the user is having to manually go back to a different screen to finish the workflow. What you suggest would allow macroB to run as it did before the update and not mess up...
Skie - I was able to use what MgWils gave me and that worked just fine by just doing everything in macroB. It's good enough for now. :)
MgWils - Thanks for all your help. I even got macroA to just one version using the If/then's you suggested. A co-worker is the guinea pig the rest of the...
I don't think that will help either, but I can try it tomorrow when i get to work.
But...
x9992009999999______
z120c2009999999_____
It seems that instead of pulling a space it's pulling the physical underscore that is showing the length of the field (20 characters) the source is in.
(I have 4...
Sorry, forgot about formating...
StringC will either look like x9992009999999 or x999x2009999999.
I get 2009999999 with the 1st format but when i run for the 2nd format i get 009999999_,the underscore is present.
And I'm still getting 009999999_ even with:
lpm =...
The state abbreviation is located on multiple screens so it would be possible to use that but I'd have to send the macro to a specific page to pull the state which I know how to do. It's the If/Thens that give me problems.
I will try that:
And let you know what happens. I can only work on this between tasks.
Ok, basically the "version" is based on the state the product is in. I have the 10 versions of macroA assigned to 10 different buttons and created to send a certain company code to ProgramB.
I can't combine those 2 macros because I have 10 different versions of macroA due to going into the correct section of ProgarmB. If I was a better programmer I could do 10 IF/Thens but I have limited experience.
I'm going under the assumption that it would just be easier to go back into...
I have created a few macros to use at work to automate some repetitive tasks. I have 1 that I need to alter for a new process. When I'm in Extra I move from 1 "program" to another. My macroA is setup to get StringA from ProgramA, SendKeys, and then paste StringA. MacroB was created to put...
Well, it's not the editor that's crapping out. When I'm in the editor the macro works fine, it's when I run the macro through Extra! that the If...Then statements get skipped over and the macro just goes to the screens I tell it to at the beginning and then goes to "USEREXIT" where I tell it to...
HELP!
When I step through the code it works perfectly, but when I run it it totally skips my If...Then statements. How is that possible? Here is part of my code since it's 5 pages worth all together. Please, help I do not understand how it can skip the If....Then's.
DIM VO as dlgVer...
I found this in help, and I think it fixed my problem.
On Error GoTo Debugger
Dialog VO
.....
done:
Exit Sub
Debugger:
msgtext="Exiting Macro" 'changed from error #...
'occrured on blah line.
MsgBox msgtext
Resume done
End Sub
I forgot about my Cancel...
When I push the Cancel button it tells me:
Command failed
Line number: 128
Stopping macro playback.
Line 128 is "Dialog VO", where I open my dialog box. How do I tell the macro to clear the variables and stop the macro playback?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.