Move curser to specific cell when closing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top