Excelnoobisme
Board Regular
- Joined
- Nov 19, 2010
- Messages
- 128
Hi,
i have a worksheet "A" with msgbox popup when i attempt to close it.
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim Response As Long
Response = MsgBox("Have you save a copy?", vbYesNo)
If Response = vbNo Then
Cancel = True
Else: ThisWorkbook.Saved = True
End If
End Sub
On worksheet "B" i have some link to Worksheet "A", and when i try to
Windows("A").close, it will show the above MsgBox. Is there any code to bypass it?
i have a worksheet "A" with msgbox popup when i attempt to close it.
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim Response As Long
Response = MsgBox("Have you save a copy?", vbYesNo)
If Response = vbNo Then
Cancel = True
Else: ThisWorkbook.Saved = True
End If
End Sub
On worksheet "B" i have some link to Worksheet "A", and when i try to
Windows("A").close, it will show the above MsgBox. Is there any code to bypass it?