'Get details from Excel
dod = Range("D6"): If dod = "" Then MsgBox ("Please input Date of Death and try again"): End
dod = Format(dod, "DD/MM/YYYY")
Range("F8, F10").Select
Selection.ClearContents
' Get the main system object
Dim Sessions As Object
Dim System As Object
Set System = CreateObject("EXTRA.System") ' Gets the system object
If (System Is Nothing) Then
MsgBox "Could not create the EXTRA System object. Stopping macro playback."
Stop
End If
Set Sessions = System.Sessions
If (Sessions Is Nothing) Then
MsgBox "Could not create the Sessions collection object. Stopping macro playback."
Stop
End If
'--------------------------------------------------------------------------------
' Set the default wait timeout value
g_hostsettletime = 1500
OldSystemTimeout& = System.TimeoutValue
If (g_hostsettletime > OldSystemTimeout) Then
System.TimeoutValue = g_hostsettletime
End If
' Get the necessary Session Object
Dim Sess0 As Object
Set Sess0 = System.ActiveSession
If (Sess0 Is Nothing) Then
MsgBox "Could not create the Session object. Stopping macro playback."
Stop
End If
If Not Sess0.Visible Then Sess0.Visible = True
Do While Sess0.Screen.OIA.Xstatus <> 0
DoEvents
Loop
' This section of code contains the gubbins
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As Object
Dim ScrnChk As String, scrnchk1 As String, ScrnChk2 As String, PFKey As String
Set Sys = CreateObject("EXTRA.System")
Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen