MSDemocrat
Technical User
Hello. I am having an issue trying to get a macro to interact with either excel or the scratchpad. I have a list of roughly 600 contract numbers that I need to search for and the copy the value of one of the fields and paste into either an excel file or the scratchpad so i can import it into excel. I have tried playing around with the macro recorder but it does not record the actions I performed on the scratchpad.
I included the code from the macro recorder below. The value being pasted was copied from the scratchpad where I pasted my list of contract numbers. I then ran the Scan (S) function and copied the value from R19C67 and pasted that into the scratchpad next to the conract number.
I have some familiarity with VBA macros in excel but none with attachamte. Any help would be appreciated
I included the code from the macro recorder below. The value being pasted was copied from the scratchpad where I pasted my list of contract numbers. I then ran the Scan (S) function and copied the value from R19C67 and pasted that into the scratchpad next to the conract number.
Code:
Call ibmCurrentScreen.SendKeys("s")
Call ibmCurrentScreen.SendControlKey(ControlKeyCode_Tab)
Call ibmCurrentScreen.SendControlKey(ControlKeyCode_Tab)
Call ibmCurrentScreen.SendControlKey(ControlKeyCode_Tab)
Call ibmCurrentScreen.Paste
Call ibmCurrentScreen.SendControlKey(ControlKeyCode_Transmit)
ibmCurrentScreen.CursorRow = 19
ibmCurrentScreen.CursorColumn = 67
ibmCurrentScreen.CursorRow = 19
ibmCurrentScreen.CursorColumn = 67
Call ibmCurrentScreen.SetSelectionStartPos(19, 67)
Call ibmCurrentScreen.ExtendSelectionRect(19, 67)
Call ibmCurrentScreen.Copy
I have some familiarity with VBA macros in excel but none with attachamte. Any help would be appreciated