ahhhh ok this worked fine...Thanks again Skip!
WorksheetFunction.Sum(Trim(Sess0.Screen.GetString(12, 59, 10)), Trim(Sess0.Screen.GetString(14, 39, 12)))
Hi, not sure why this is not adding. Substract, divide and multiply all work but does not add, instead it puts the numbers together
Trim(Sess0.Screen.GetString(12, 59, 10)) + Trim(Sess0.Screen.GetString(14, 39, 12))
thanks!
Hey Skip, i have this code below. however, when it tries to close it, there is a pop up box asking me if i want to disconnect sessions Mainframe. I just want it to close without having to click on yes or no.
Sub test()
Set oSystem = CreateObject("Extra.System")
Set oSess =...
For example, i put this code below in notepad and saved the file as "Testing.vbs". Now when i double click on this file, excel application and the workbook testA.xlsm opens. I would like to do the same for Mainframe.
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook =...
crap thats right...got it working now but one problem. The value that is extracted from Mainframe to column D keeps getting overwritten and does not move to next row
Sub Extract()
Dim Sessions, System As Object, Sess0 As Object
Set System = CreateObject("EXTRA.System")
Set Sessions =...
Code below extracts the data for the first account # that is in column A but does not continue the loop to goto next account #. Column A has the accounts numbers and column D would be the data that is extracted from mainframe into excel
Sub Extract()
Dim Sessions, System As Object, Sess0 As...
Hi Skip, thanks for your help but now im getting error 'Type Mismatch"
Dim dMaxDTE As Date, rw As Integer
Do
For i = 8 To 17
If Trim(Sess0.Screen.GetString(i, 54, 8)) = "" Then Exit For
If dMaxDTE < DateValue(Trim(Sess0.Screen.GetString(i, 54, 8)))...
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.