RUN Time error 9

  • Thread starter Thread starter Alisha
  • Start date Start date
Alisha,

This error typically occurs when you are attempting to retrieve,
by name, an item from a collection, and no item by that name
exists. For example, the following code will raise an error 9 if
there is no sheet named 'Sheet4'.

MsgBox Worksheets("Sheet4").Name

You might want to post the code that is causing the error.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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

Similar Threads

Run Macro If Cell have "x" value 0
Run-time error '9' 6
Creating a defined name's Refersto range 2
Userform to spreadsheet 2
Run-time error: '9' 5
if function prob 2
Run-time error 9 5
Run-time error 9 6

Back
Top