Move curser to specific cell when closing

R

Richard

I'd like to have Sheet2 cell B3 the active cell when closing workbook. I know
the code goes in Workbook_BeforeClose(Cancel as Boolean). I just don't know
how to word it? Thanks in advance
 
G

Gary''s Student

Hi Richard:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("Sheet2").Activate
Range("B3").Select
End Sub

By the way, this is a good practice.
 
Top