Select all Sheets Error

  • Thread starter Thread starter dolphinv4
  • Start date Start date
D

dolphinv4

Hi,

I tried to select all sheets in a database i have by
having this macro:

Sub Test()

Sheets.Select

End Sub

but there is an error "Runtime Error 1004 -
Method 'select' of object 'Sheets' failed".

However, when I open a new workbook and do this, the
macro works. Why?

Regards,
Val
 

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