I have done a break and it gose through correctly or if I manually close the file it works correctly. Here is the code:
Private Sub CommandButton4_Click()
Response = MsgBox("Are you creating a new Bond?", vbYesNoCancel)
If Response = vbYes Then
newbond
End If
If Response = vbNo Then
existingbond
End If
Workbooks("Bondsdbs.xls").
ActiveWorkbook.Close
End Sub
Main Topics
Browse All Topics





by: brettdjPosted on 2005-01-05 at 18:09:57ID: 12968680
Hi,
Can you please post the code from the first file which I assume closes the second file and should trigger the code above.
If you debug the first code (either place a break point on the code above or step through the first code with F8) does the event above actually get triggered?
Cheers
Dave