So I added this code below to my other codes that initiate. It all worked well until this one was added. What I do is have a button on a sheet that will launch Userform1 on the first workbook. Then a second workbook will open and extract data as appropriate, but on this one sheet I am getting out of memory, which is odd, catastrophic error, and Userform1 tries to launch again. I took this one out of my code and all is working properly again. I need to extract data once a day from this sheet and the code below was suppose to check if this was processed yet and if not, extract the small data set in an external file. Please let me know what you see. I have used similar processes before without the relaunch of my macro. I do not know. I am use to version 2007 and this is 2013 which I am having some adjustments. Thank you.
Code:
Private Sub TableUpdate()
Dim wb, ob As Workbook
Dim ExternalM, ExternalT, stats As Worksheet
Dim TFile, notice As String
Dim DateIn As Range
Dim d As Date
d = Format(Now(), "m/dd/yyyy")
Set wb = ThisWorkbook
Set stats = Sheet6
If d <> stats.Range("B3").Value Then
Set ExternalT = wb.Worksheets("External")
Application.ScreenUpdating = False
Application.CutCopyMode = False
TFile = "C:\SequenceLock.xlsx"
Workbooks.Open Filename:=TFile, ReadOnly:=True
Set ob = ActiveWorkbook
'ERROR OCCURESHERE TO LAUNCH USERFORM1 AGAIN
Set ExternalM = ob.Sheets("External")
ExternalM.Cells.Copy Destination:=ExternalT.Range("A1")
ob.Close (False)
Application.CutCopyMode = False
wb.Activate
Set DateIn = stats.Range("B3").Value
DateIn = d
notice = ExternalT.Range("I1")
If notice <> "" Then
MsgBox notice, Title:="Sequence Notice"
End If
End If
End Sub