Opening excel

M

mickocollin

Version: v.X
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

When excel starts up/opens it always gives me a blank new workbook. How do I stop that from happening?

mick
 
J

JE McGimpsey

Version: v.X
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

When excel starts up/opens it always gives me a blank new workbook. How do I
stop that from happening?

You can't do that in the interface (BTW: the behavior is in accordance
with MacOS X guidelines). However, you can do it with an event macro.
Put this in the ThisWorkbook module of your Personal Macro Workbook:

Private Sub Workbook_Open()
Dim wbFirst
Set wbFirst = Workbooks("Workbook1")
If Not wbFirst Is Nothing Then wbFirst.Close
Debug.Print "Ran"
End Sub
 

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

Top