Hello,
I am running a macro in Attachmate Extra that has a small part where it needs to send 3 pieces of data to an Excel spreadsheet. I have successfully created code to send the data to the already open Excel file. The problem I am running into is that I need to send the info to the currently selected cell in column A, and cells in column B and C of the same row. If I can achieve this, I would also like to move the selected cell down 1 row as the last step.
Here is the code I have so far:
So instead of row 5303, I want it to be the row wherever the currently selected cell is.
I am using Attachmate Extra VB
Thank you for any help.
I am running a macro in Attachmate Extra that has a small part where it needs to send 3 pieces of data to an Excel spreadsheet. I have successfully created code to send the data to the already open Excel file. The problem I am running into is that I need to send the info to the currently selected cell in column A, and cells in column B and C of the same row. If I can achieve this, I would also like to move the selected cell down 1 row as the last step.
Here is the code I have so far:
Code:
' Send info to Excel
Dim xlApp As Object, xlSheet As Object
Set xlApp = Getobject("C:\Users\jay3120\Desktop\Excel Test.xlsx")
Set xlSheet = xlApp.activesheet
StartLine = Sess0.Screen.GetString (4,19,9)
Middle = Sess0.Screen.GetString (4,31,2)
FinishLine = Sess0.Screen.GetString (6,13,24)
xlSheet.Cells(5303, "A").Value = StartLine
xlSheet.Cells(5303, "B").Value = Middle
xlSheet.Cells(5303, "C").Value = FinishLine
I am using Attachmate Extra VB
Thank you for any help.