Forgive my newbieness, but I am trying to make my workday more efficient and am pretty new to scripting macros!
Here is my goal: to have a macro that prompts me for input once for a value that can be recalled and re-used. (I wish I knew the terminology, but don't - so bear with me!). Below is an example of my macro. Where it says "110513" I simply want YESTERDAYS date in MMDDYY format... but sometimes I need to input a range, which is why I would like it to prompt me for input rather than simply SendKey yesterdays date.
Here is the actual code that only sends the pre-set date/value (110513):
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "110513"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[tab]"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "110513"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[enter]"
end sub
Logically what I would like:
OPENS with a Message box prompt, asking for a value. That value is stored as USER_VALUE.
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "USER_VALUE"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[tab]"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "USER_VALUE"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[enter]"
end sub
Here is my goal: to have a macro that prompts me for input once for a value that can be recalled and re-used. (I wish I knew the terminology, but don't - so bear with me!). Below is an example of my macro. Where it says "110513" I simply want YESTERDAYS date in MMDDYY format... but sometimes I need to input a range, which is why I would like it to prompt me for input rather than simply SendKey yesterdays date.
Here is the actual code that only sends the pre-set date/value (110513):
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "110513"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[tab]"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "110513"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[enter]"
end sub
Logically what I would like:
OPENS with a Message box prompt, asking for a value. That value is stored as USER_VALUE.
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "USER_VALUE"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[tab]"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "USER_VALUE"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[enter]"
end sub